Reputation
27,529
Next tag badge:
364/400 score
84/80 answers
Badges
5 48 90
Impact
~1.2m people reached

May
22
revised Troubleshooting SOS_SCHEDULER_YIELD wait
edited title
May
22
comment Troubleshooting SOS_SCHEDULER_YIELD wait
Also notice that your signal wait time seems to be a large portion of your wait time (it's inclusive in wait time), further indicating CPU pressure.
May
22
comment Troubleshooting SOS_SCHEDULER_YIELD wait
Some things to check: See if other processes are consuming a significant amount of CPU time, check current waiting tasks with sys.dm_os_waiting_tasks and see what their wait types are. Look for heavy CPU consumers like a large number of compilations and recompilations. Check virtual file stats, blocking, and other generic troubleshooting. Look into the plan cache (or use an XE session) to get high CPU consuming queries, etc. Lots of troubleshooting, and SOS_SCHEDULER_YIELD isn't necessarily always accompanied with consistent non-zero value for runnable_tasks_count.
May
22
awarded  Popular Question
May
22
comment Is there a way to generate an execution plan for a stored procedure before executing it?
msdn.microsoft.com/en-us/library/ms191194.aspx
May
22
comment Startup procedure for availability replica becoming primary
Have these as job steps, use conditional logic to determine whether or not job step execution should continue.
May
21
comment One filegroup, multiple datafiles, how to get list of tables in each file
Good point and agreed. Also, good answer, +1.
May
21
revised Startup procedure for availability replica becoming primary
added 73 characters in body
May
21
comment One filegroup, multiple datafiles, how to get list of tables in each file
There's no guarantee that tables will be spread equally across the files. I can think of a few situations where that isn't the case (index rebuild being one).
May
21
awarded  Constituent
May
21
revised Startup procedure for availability replica becoming primary
added 54 characters in body
May
21
revised Startup procedure for availability replica becoming primary
edited tags
May
21
answered Startup procedure for availability replica becoming primary
May
17
awarded  Revival
May
17
comment Re enable Windows Authentication
Reference: msdn.microsoft.com/en-us/library/dd207004.aspx/css
May
17
comment Re enable Windows Authentication
Ok. If you are a local administrator on the machine, start SQL Server in single user mode (-m) and connect to reset the sa password.
May
17
revised Re enable Windows Authentication
edited title
May
17
comment Re enable Windows Authentication
What do you mean, Windows Authentication was disabled? In SQL Server, you have two options for authentication: Windows Auth or Windows and SQL Auth.
May
16
revised Running a query within a scheduled job
added 79 characters in body
May
15
comment Running a query within a scheduled job
@Vince There's actually a pretty good example of this on TechNet. See this link all the way at the bottom titled Sending an HTML e-mail message (technet.microsoft.com/en-us/library/ms190307.aspx).