24,938 reputation
44585
bio website blogs.msdn.com/b/sql_pfe_blog
location In the Ocean somewhere...
age
visits member for 3 years, 5 months
seen 9 hours 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.


Mar
10
comment How do I know if my database partitioning is done well?
Table partitioning is not meant to be a performance enhancer. It is for ease of maintenance. Sure, the optimizer could potentially use partition elimination, but that is a secondary and lesser benefit to the administrative benefit of partitioned tables. As for your particular implementation, we'd need to see specifics.
Mar
8
comment Covering Index Question
@AaronBertrand Good point, I didn't read the contextual usage.
Mar
8
comment Covering Index Question
@Tom Depending on what version of SQL Server you are using you can also leverage Extended Events in lieu of SQL Trace.
Mar
2
comment Scheduling a backup in SQL Server 2005
Are you sure you're on the right instance? I'm guessing you're talking about a maintenance plan?
Mar
2
answered When to use identity increment?
Feb
28
comment Find all the queries executed recently on a database
Haha I figured that.
Feb
28
comment Find all the queries executed recently on a database
Yep!!! That looks good to me.
Feb
28
comment Find all the queries executed recently on a database
@AaronBertrand I edited my post to ensure that I specify that my answer is more geared towards native functionality.
Feb
28
revised Find all the queries executed recently on a database
added 13 characters in body
Feb
28
comment Find all the queries executed recently on a database
@AaronBertrand Post away, my friend :-D
Feb
28
comment Find all the queries executed recently on a database
@AaronBertrand You mean looking through the log file? :-) I'm not familiar with a suite of tools that can scrub that information for you. Do you have a list?
Feb
28
revised Find all the queries executed recently on a database
added 270 characters in body
Feb
28
revised Find all the queries executed recently on a database
added 218 characters in body
Feb
28
revised Find all the queries executed recently on a database
edited tags
Feb
28
answered Find all the queries executed recently on a database
Feb
28
comment Why is SQL Server memory showing in task manager
+1 This is the right answer and more related to what the OP seems to be looking for.
Feb
26
awarded  Enlightened
Feb
26
awarded  Nice Answer
Feb
26
comment Is there any difference between putting a column alias at the start or the end of the column definition?
@AaronBertrand Do you put the commas in front of the column definition for every column after the first?? I don't think I've ever seen you do that. I keep my commas trailing the owning column definition. :-)
Feb
26
comment Is there any difference between putting a column alias at the start or the end of the column definition?
Completely agree on the quotes aspect. As for the long expression, what I personally do is use carriage returns and newline tabbing and then put the as <Alias> on the last line of the column definition. But definitely agreed, it's as personal as how you like your coffee.