24,903 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 5 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.


14h
revised AlwaysOn Availability Groups log_send_rate
edited title
14h
answered AlwaysOn Availability Groups log_send_rate
Nov
19
comment How to get CPU usage by database for particular instance?
In my opinion, there are very few times when you'd want to break out CPU consumption by database, and totally agree with Aaron on his points.
Nov
18
awarded  Enlightened
Nov
18
awarded  Nice Answer
Nov
17
answered This instance of (MS) SQL Server has been using a process id of X since dd/mm/yyyy
Nov
12
awarded  Notable Question
Nov
10
awarded  Notable Question
Nov
10
awarded  Famous Question
Nov
4
answered Cancelling / Stopping ALTER INDEX REORGANIZE
Nov
3
revised Difference in space used
edited tags
Nov
3
answered Difference in space used
Oct
31
comment HOW to Solve this Error
What version of SQL Server? Also, what does this show? dbcc tracestatus();
Oct
31
comment SQL Server 2012 Standard using too much memory
I was looking more for the text dump of dbcc memorystatus(), a screenshot wouldn't suffice here (way too much data to include or parse from a screenshot).
Oct
31
revised SQL Server 2012 Standard using too much memory
edited title
Oct
31
comment SQL Server 2012 Standard using too much memory
Feel free to show dbcc memorystatus() output and I can take a look at it.
Oct
30
revised How Do I Use PowerShell to Get a SQL Server Backup Status?
edited title
Oct
29
comment How to recover a database from a failed Availability Group?
Have you tried any way besides fc admin?
Oct
29
comment Currently all connections getting “Timeout expired”
It's not Executexxx() that attempts to pull a connection from the pool, it's SqlConnection.Open(). So there are other code paths that can lead to this as well. At this point, if it was me I would set a few breakpoints and start seeing what is cleaned up and what isn't. Outside of debugging and following code I can't think of an easier way to get to the bottom of it.
Oct
29
comment Currently all connections getting “Timeout expired”
It looks like with the using block SqlConnection.Dispose() should be called. Is there perchance 100 current execution paths that have yet to reach the end of the using block? Is that the only code that opens up a connection?