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

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.


Apr
18
answered TSQL Get minute part from time data type
Apr
18
awarded  Good Answer
Apr
18
comment What's the point of WHERE 1=2 for SELECT INTO table query
@JNK Yeah, I'll tend to agree with you there. Conditional statements that will never evaluate to true always look odd to me.
Apr
18
comment What's the point of WHERE 1=2 for SELECT INTO table query
@Sahuagin No you cannot.
Apr
18
comment What's the point of WHERE 1=2 for SELECT INTO table query
@onedaywhen That's fair. I have edited my post for a bit more of an accurate description instead of "replica".
Apr
18
revised What's the point of WHERE 1=2 for SELECT INTO table query
added 3 characters in body
Apr
17
answered Sql Server Resource Governor - track IO
Apr
16
revised Table order in Join Query
edited tags
Apr
16
revised Table order in Join Query
added 138 characters in body
Apr
16
answered Table order in Join Query
Apr
16
revised One table or several tables?
edited tags
Apr
16
answered One table or several tables?
Apr
15
revised What's the point of WHERE 1=2 for SELECT INTO table query
added 1 characters in body
Apr
15
revised What's the point of WHERE 1=2 for SELECT INTO table query
added 78 characters in body
Apr
15
comment What's the point of WHERE 1=2 for SELECT INTO table query
@AaronBrown Good question. No, it will not duplicate the source table's indexes. After the SELECT ... INTO, the duplicate table will be a heap. It's up to you to create the appropriate indexes on that table.
Apr
15
awarded  Enlightened
Apr
14
awarded  Nice Answer
Apr
14
revised What's the point of WHERE 1=2 for SELECT INTO table query
added 2 characters in body
Apr
14
answered What's the point of WHERE 1=2 for SELECT INTO table query
Apr
13
comment Tracking stored procedure usage
@HLGEM Precisely. I've tried to make that point clear in my answer.