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 2 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.


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.
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
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
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?
Oct
16
comment Log shipping option not showing
You can insert an image into the body of your question (just hit the "edit" button).
Oct
16
comment Can WAITFOR increase CXPACKET waits?
That isn't quite correct. It will increase the WAITFOR wait type in sys.dm_os_wait_stats.
Oct
16
comment Log shipping option not showing
Can you post a screenshot of the "Database Properties" window?
Oct
15
comment What is the most effective way to discover all running instances of SQL Server using PowerShell?
That works provided you are supplied with a list of servers to begin with. That can't always be assumed.
Oct
15
comment SQL Server mirroring causing issues
What does your connection string look like?
Oct
15
comment Unable to restore database
Cool, glad you got it working. Glad to help! :-)
Oct
15
comment Unable to restore database
Have you seen this? "If the database exists, RESTORE permissions default to members of the sysadmin and dbcreator fixed server roles and the owner (dbo) of the database" :: msdn.microsoft.com/en-us/library/ms186858.aspx
Oct
8
comment SQL Server: Buffer page read/writes per second reported high
Agreed with Aaron. Unless extremely egregious, counters without a point if reference (I.e. Baseline) is hard to work with.
Oct
1
comment Non clustered index on multiple columns
What are the common data retrieval queries with these columns?
Sep
29
comment How to get more information from dm_exec_query_stats
Instead of trying to trace down occurrences of SQL injection, why don't you just prevent any possibility of that happening?
Sep
25
comment How to reclaim the unused Space in a database
Ok, well then that would make perfect sense why you would specify TRUNCATEONLY :-)
Sep
24
comment Did a SQL Server instance ever participate in replication?
My guess is the software is looking for a check to see if there is a common indicator for replication that pops. For instance, maybe it is testing the Replication XPs server configuration option to see if it is turned on. Ultimately, your best bet would be to reach out to the vendor and just ask them what their software does to check for repl. Likewise, you could also run a trace/XEvents session to see everything that the software is doing on the instance and paint the picture for yourself there.
Sep
16
comment SQL Query to export
What language are you using to construct this query? C#? Also, what is the context of data retrieval and parameter setting?