25,996 reputation
44586
bio website blogs.msdn.com/b/sql_pfe_blog
location In the Ocean somewhere...
age
visits member for 3 years, 7 months
seen 2 hours ago

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.


Jan
21
revised When was a Database taken Offline
edited title
Jan
21
answered When was a Database taken Offline
Jan
15
revised Disk Space usage
edited title
Jan
15
comment Disk Space usage
This should be pulled outside of SQL Server. Manage operating system things in the operating system in my opinion. Use SQL Server to store the data, by all means, and create a report off of the data. But don't pull the data from within SQL Server.
Jan
15
revised When does SQL Server determine to use a new index?
added 31 characters in body
Jan
15
revised When does SQL Server determine to use a new index?
edited tags
Jan
14
revised ola hallengren Index Maintenance script - GUID Index
added 16 characters in body
Jan
14
revised Get last full backup and transaction log backup for each database
edited title
Jan
14
answered Get last full backup and transaction log backup for each database
Jan
14
answered When does SQL Server determine to use a new index?
Jan
13
comment Script Rename of SQL Server Database and Database Files
That could quite easily be automated through PowerShell. Using SMO, the SQL work is concise and straightforward, and then the rename of the database files is a one-liner.
Jan
13
revised Script Rename of SQL Server Database and Database Files
edited tags
Jan
9
revised How do you run T-SQL commands on multiple servers from one place?
edited title
Jan
9
comment How do you run T-SQL commands on multiple servers from one place?
What does your script specifically do? That may allow us to get more specific with a recommendation.
Jan
9
answered How do you run T-SQL commands on multiple servers from one place?
Jan
9
comment Database size after importing the .sql file
There is absolutely no way to determine that. If the .sql file is 34.5 GB of comments then you'd have no problem :-) What is in the SQL file? (this comment is assuming SQL Server)
Jan
8
comment How can I filter an extended event by database in SQL Server 2008 R2
@JackDouglas That's awesome :-)
Jan
8
revised How can I filter an extended event by database in SQL Server 2008 R2
added 17 characters in body
Jan
8
comment How can I filter an extended event by database in SQL Server 2008 R2
@JustinDearing Honestly, all I do is just hard code the database ID and then put a comment right next to it with the database name so my future-me knows what I intended without having to resolve it. It has worked for me with no issues.
Jan
8
comment How can I filter an extended event by database in SQL Server 2008 R2
@ShawnMelton No, I'm saying the package is spelled "sqlserver" not "sqlsever". Also, there is no database_name action in 2008 R2.