14,294 reputation
22453
bio website sqlsalt.com
location
age
visits member for 1 year, 11 months
seen 3 mins ago
stats profile views 410

SQL Server Premier Field Engineer at Microsoft.

Twitter: @SQLife
Blog: http://sqlsalt.com
Email: sqlsalt [at] outlook [dot] com

Disclaimer
The views expressed on my posts on this site are mine alone and do not reflect the views of my company. All posts of mine are provided "AS IS" with no warranties, and confers no rights.

The following disclaimer applies to all code, scripts and demos available on my posts:

This Sample Code is provided for the purpose of illustration only and is not intended to be used in a production environment. THIS SAMPLE CODE AND ANY RELATED INFORMATION ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. We grant You a nonexclusive, royalty-free right to use and modify the Sample Code and to reproduce and distribute the object code form of the Sample Code, provided that You agree: (i) to not use Our name, logo, or trademarks to market Your software product in which the Sample Code is embedded; (ii) to include a valid copyright notice on Your software product in which the Sample Code is embedded; and (iii) to indemnify, hold harmless, and defend Us and Our suppliers from and against any claims or lawsuits, including attorneys’ fees, that arise or result from the use or distribution of the Sample Code.


17m
comment Troubleshooting SOS_SCHEDULER_YIELD wait
That would do it :-) Glad you got it figured out.
14h
comment Troubleshooting SOS_SCHEDULER_YIELD wait
You're saying you re-ran the same workload in off hours. Take a look at the CPU time demand for that workload. They may not necessarily be unrelated.
14h
revised Troubleshooting SOS_SCHEDULER_YIELD wait
edited title
14h
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.
15h
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.
21h
awarded  Popular Question
23h
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
1d
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.
1d
comment One filegroup, multiple datafiles, how to get list of tables in each file
Good point and agreed. Also, good answer, +1.
2d
revised Startup procedure for availability replica becoming primary
added 73 characters in body
2d
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).
2d
awarded  Constituent
2d
revised Startup procedure for availability replica becoming primary
added 54 characters in body
2d
revised Startup procedure for availability replica becoming primary
edited tags
2d
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.