23,493 reputation
33981
bio website blogs.msdn.com/b/sql_pfe_blog
location In the Ocean somewhere...
age
visits member for 3 years, 1 month
seen 1 hour 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.


11h
revised Finding rows with duplicate values
edited tags
11h
comment Does sp_indexoption cause index rebuilds?
@Junto Glad to help :-) And yes for some of the more "robust" references they can be quite daunting with all of the syntax and information.
11h
comment Finding rows with duplicate values
Sample data for both tables and desired outcome would be really helpful with this question.
12h
revised Does sp_indexoption cause index rebuilds?
edited tags
12h
answered Does sp_indexoption cause index rebuilds?
1d
comment How to pull rows only from the weekends?
Your WHERE clause using GETDATE() won't give the desired behavior. That'll test for the current datetime, whether it is Saturday/Sunday. You'd have to specify the Date column there to get the OP's end results.
1d
revised How to pull rows only from the weekends?
edited tags
1d
revised How to pull rows only from the weekends?
added 75 characters in body
1d
comment How to pull rows only from the weekends?
Great point, Aaron!! I'll add that to the answer.
1d
answered How to pull rows only from the weekends?
2d
comment Stored Procedure null parameter within where clause
Don't do @param = null. You need to do @param is null. Nothing can be "equal" to NULL.
2d
revised Stored Procedure null parameter within where clause
edited tags
2d
answered Stored Procedure null parameter within where clause
2d
comment CSS layout picture
This isn't a question about databases, and this site is dedicated to database and database-related questions. You might want to try Stack Overflow (stackoverflow.com) for web development questions.
Aug
19
revised Database User not reported as orphaned after Windows login dropped
edited title
Aug
19
answered Database User not reported as orphaned after Windows login dropped
Aug
19
revised FlushCache messages appearing in log at specific times
added 381 characters in body
Aug
19
revised FlushCache messages appearing in log at specific times
added 271 characters in body
Aug
19
revised FlushCache messages appearing in log at specific times
added 150 characters in body
Aug
19
answered FlushCache messages appearing in log at specific times