27,119 reputation
54890
bio website tstringer.azurewebsites.net
location In the Ocean somewhere...
age
visits member for 3 years, 9 months
seen yesterday

SQL Server Support Escalation Engineer at Microsoft.

Twitter: @SQLife
Blog: http://tstringer.azurewebsites.net
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.


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).
May
15
answered Running a query within a scheduled job
May
15
comment Running a query within a scheduled job
The query by itself is just fine. Can you post the actual scripted command you are using to create the job as well as the mail send command? My guess is you're having quoting issues.
May
15
revised Running a query within a scheduled job
added 45 characters in body
May
15
revised Suspended in index rebuild
added 86 characters in body
May
15
answered Suspended in index rebuild