by Maeenul
3. May 2012 08:03
Factory pattern and abstract factory both can be used in the scenarios where you need to have dynamic object creation. Every scenario where you can use factory pattern, you can use abstract factory instead and vice versa. The difference between these 2 patterns are in approach, not in scenarios. Some like to have all the object creation methods separated in another class, they use abstract factory. Some things, I dont want to create another class, so they just create the objection creation methods in the same class. But to me, if you need to ha...
[More]
by Maeenul
1. May 2012 05:00
How to Copy SQL Server Database Data Files (.mdf and .ldf)
[More]
by Maeenul
20. April 2012 04:00
USE [GSK_DATA_DB] GO /****** Object: StoredProcedure [dbo].[SP_Impersonate] Script Date: 06/28/2010 15:45:55 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER proc [dbo].[SP_Impersonate] with execute as 'bd\islamaw1' as begin exec [SP_REIM_REPORT_DATA] '', 'LC', '2010-01', 'PTW', 'All' end
by Maeenul
19. April 2012 05:00
function InfoByDate(sDate, eDate){ var divToBeWorkedOn = '#AjaxPlaceHolder'; var webMethod = 'http://MyWebService/Web.asmx/GetInfoByDates' var parameters = "{'sDate':'" + sDate + "','eDate':'" + eDate + "'}" $.ajax({ type: "POST", url: webMethod, data: parameters, contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { $(divToBeWorkedOn).html(msg.d); }, error:
function(e){ $(divToBeWorkedOn).html("Unavailable"); } })
;
}
$.get("http://doman.com/webservice.asmx", { name: "Joh...
[More]
by Maeenul
2. April 2012 05:00
with
member [GEO].[Hierarchy].[TOTALE ITALIA]
as [GEO].[Hierarchy].[Level4 Name].&[10858]
select {
[GEO].[Hierarchy].[TOTALE ITALIA], [GEO].[Hierarchy].[Level4 Name].&[10858].children
} on rows,
{
crossjoin( tail([Period].[Hierarchy].[Month Name].members,2),
{
&n...
[More]
by Maeenul
23. March 2012 09:46
Sometimes in sqlserver, we need to kill the processes that are running in a specific database. There might be several reasons for this. Sometimes lock request time out error occurs. Sometimes backup or restore cannot be done due to some connections that is not released and so on.
We can use this simple procedure to kill all the processes that will resolve these problems. We need to create this procedure in the master database and run this procedure while selecting/using the master database. The procedure takes the database name for which we ...
[More]
614932b2-ba6f-492f-979e-dfba188d4755|0|.0
Tags:
Category:
by Maeenul
20. March 2012 06:00
8e056950-10bd-41af-a60c-b3a15859b417|0|.0
Tags:
Category: Edit