23,523 reputation
33981
bio website blogs.msdn.com/b/sql_pfe_blog
location In the Ocean somewhere...
age
visits member for 3 years, 2 months
seen 11 mins ago

SQL Server Premier Field Engineer at Microsoft.

Twitter: @SQLife
Blog: http://blogs.msdn.com/b/sql_pfe_blog/
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.


Feb
18
answered ORDER BY clause is allowed over column that is not in SELECT list?
Feb
18
revised Everyone warns against shrinking a database, but will it work in my case? 1 GB db with tables removed now 100 MB
deleted 1 characters in body; edited tags; edited title
Feb
18
revised What's the point of WHERE 1=2 for SELECT INTO table query
edited title
Feb
18
comment Stored Procedure as Create Table proxy?
@AaronBertrand Good point, I've edited/fixed. A bad habit I need to correct :-)
Feb
18
revised Stored Procedure as Create Table proxy?
added 28 characters in body
Feb
18
answered Everyone warns against shrinking a database, but will it work in my case? 1 GB db with tables removed now 100 MB
Feb
18
revised Logical reads amount difference with almost identical indexes
deleted 22 characters in body
Feb
17
comment Restore SQL Server database from .sql files
You can surely execute a SQL script file from sqlcmd, but the real question is how did you script this out? Sequence does matter here (think foreign key relationships), as well as if the scripts contain all DDL. If you did the "Generate scripts..." from SSMS you should be fine. But the true backup and restore should have been more traditional with native full/diff/tran log backups.
Feb
15
revised SQL Server 2008 Restore from D2D
added 20 characters in body
Feb
15
comment Stored Procedure as Create Table proxy?
For what it's worth, I just used OWNER in my example. That can be a few possibilities.
Feb
14
revised Stored Procedure as Create Table proxy?
edited tags
Feb
14
revised Stored Procedure as Create Table proxy?
added 6 characters in body
Feb
14
answered Stored Procedure as Create Table proxy?
Feb
13
comment Restrict access for Windows administrator
+1 Prudent advice.
Feb
13
answered Logical reads amount difference with almost identical indexes
Feb
13
revised Should I use Asynchronous Mirroring?
added 516 characters in body
Feb
13
comment Should I use Asynchronous Mirroring?
AlwaysOn will have the two same commit modes (sync and async), so you will never get around potential data loss with asynchronous commit mode.
Feb
13
answered Should I use Asynchronous Mirroring?
Feb
11
revised Disaster recovery plan - Having multiple servers
edited body
Feb
11
revised Indexing strategy when using the between operator SQL Server 2008
added 4 characters in body