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


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?
Sep
16
comment SQL Query to export
I answered prior to confirming the RDBMS. Which are you using? SQL Server? Oracle? MySQL?
Sep
16
comment How to add an “INCLUDE” part in an Index Created as a part of CONSTRAINT
I think the OP is asking more about how to get INCLUDE columns when defining a constraint.
Sep
15
comment Connection to SQL Server failed. A network-related or instance-specific error occurred while establishing a connection to SQL Server
You can't connect because you service isn't started. You need to troubleshoot why the service won't start. Start with the Windows event logs.
Sep
15
comment Disk Crashed, NDF(Index) file lost
Yes, do you file/filegroup restore using the full backup with NORECOVERY, and then restore your log backups sequentially, with the last one specifying RECOVERY. The link I posted in my answer shows how all of that can be accomplished.
Sep
9
comment CHECKPOINT or COMMIT writes to disk?
+1 this is the right/best answer.
Sep
4
comment SQL Server 2008 logging
Can you define what you mean by "logging"? You mean the SQL Server database's transaction log?
Sep
4
comment Find if Column Belongs to User Table
@AaronBertrand Excellent article, and I've made those changes. Great read and I'll definitely refine my ways as well! Thanks!