--TODO--
Jul 13, 2015
Jun 1, 2015
Lost all SQL Admin logins -- this command comes to my rescue.
PsExec -s -i "C:\Program Files (x86)\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"
This will use Network Service to Login and you can add new login one you logged in through,
Note: SSMS.exe path may differ, please check on your drive for SQL Installed Binn.
May 15, 2015
Deleting performance Category via Power shell.
Its worked perfectly fine for me.
[Diagnostics.PerformanceCounterCategory]::Delete( "Perf Category Name" )
May 12, 2015
Jan 11, 2014
Dec 7, 2011
Best Practice for deleting large records from a table
Request Timed out for Large Table records delaetion.
Even sometime it sayes Transaction Logs Full, or sometime Memory Issues...
So here i get the Best Practice for deleting large records from a table...
WHILE (SELECT COUNT(*) FROM <table name> WHERE [Filter Condition] > 0
BEGIN
DELETE TOP 10 FROM <table name> WHERE [Filter Condition]
END
Oct 12, 2011
Debug (F5) Global.asax.cs Application_Start() Method
Many Times we need to debug the Application_Start on server where we can not debug with Visual Studio IDE, instead we use CLR Debugger. So debugging on Global.asax.cs is deifficult as you need to attach the W3WP process, but it starts only when your application get a first hit, and so Application_Start code already executed. So how we can debug ??
So I was reading few discussion over mail thread when I came across this wonderful ideas.
(Hey Guys accept my thanks and from others as well [who read this ] for your good debugging tricks.)
So here we goes -
- Put delay in Application_Start Methods first Line as approx. you need to attach the debugger.
- #if DEBUG
if(ApplicationSetting("DebugStartup"))
System.Diagnostics.Debugger.Break();
#end if
Subscribe to:
Posts (Atom)
-
Clustered Index | Non Clustered Index Indexing is used to get fast retrival of data. The indexing which is done on physical storage is known...
-
All about Haj, please visit http://www.hajcommittee.com This year UP haj pilgrims will be decided on lottery draw due to more responces of l...
-
To get all the triggers list and their scripts run the script below. View the result in file view mode. SELECT [text] FROM sysobjects o ...