14,294 reputation
22453
bio website sqlsalt.com
location
age
visits member for 1 year, 11 months
seen 6 hours ago
stats profile views 410

SQL Server Premier Field Engineer at Microsoft.

Twitter: @SQLife
Blog: http://sqlsalt.com
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.


Apr
22
comment How do I shrink the physical Transaction Log file when it's the principal in a mirror?
What does the secondary server have in the SQL Server error log? You should have a few error log messages dictating what happened to cause the mirroring session to be suspended.
Apr
19
revised Clustered vs Nonclustered Index
added 5 characters in body; edited title
Apr
19
comment Why use separate databases for high traffic/volume tables?
Also, the concurrency gains from separating reporting workloads vs. OLTP workloads can be significant. Not to mention the handful of points that @AaronBertrand brought up. In order to know they "why" of that database design, you need to talk to the developers that designed it.
Apr
19
comment Clustered vs Nonclustered Index
The gains that you will see from having the predicate on the index as well as filtered statistics will depend largely on how filtered it is. Without seeing more information regarding your table and data, it is hard to give exact recommendations. But my comments (and answer) are food for thought.
Apr
19
answered Clustered vs Nonclustered Index
Apr
19
revised Clustered vs Nonclustered Index
edited tags
Apr
19
comment Clustered vs Nonclustered Index
What RDBMS are you using? SQL Server? This sounds like a good candidate for a filtered index. Does the application really do a full column select (*)? Unless your nonclustered index is covering, you'll have key lookups.
Apr
19
comment IIS takes longer to run queries than SMSS
Capture the post execution plans of both the queries run through IIS and through SSMS. Post them here, if possible. But look for discrepancies and performance degraders.
Apr
18
revised Reducing Log Impact During Re-Indexing
edited title
Apr
17
comment Migrating from SQL Server 2005 to SQL Server 2008 R2 on a different box
+1 Great info. I personally revert to the SSIS solution. Between it's simplicity (it is extremely simple, even if you never work with SSIS), options, error handling, and reusability. Handles more than just logins and jobs for server-object migration. Thought worth mentioning. Again great answer, Aaron, as I've used to this process many times without a single issue.
Apr
17
comment Querying number of subscription to each publication
Is MSmerge_subscriptions what you're looking for? msdn.microsoft.com/en-us/library/ms188905(v=sql.110).aspx
Apr
17
comment Unique Constraint with multiple null columns
That's by design (msdn.microsoft.com/en-us/library/ms191166(v=SQL.105).aspx). What's your question?
Apr
16
reviewed Approve suggested edit on sql server 2008 error in working
Apr
16
comment sql server 2008 error in working
Did you install SQL Server Standard or Express? Also, is this a local instance you are connecting to or did you install SQL Server on a remote machine that you are now trying to connect to?
Apr
16
revised Find application password expiration date
edited tags
Apr
16
answered Find application password expiration date
Apr
16
comment SQL Server 2012, Network for: AlwaysOn Availability Group with AlwaysOn AlwaysOn Failover Cluster Instances
@ElijahW.Gagne No that's not correct. If your driver doesn't support MultiSubnetFailover then you just need to set RegisterAllProvidersIP to 0 in your cluster so that only the online IP address is registered to prevent connection latency/timeouts.
Apr
15
revised Linked server performace issue?
edited title
Apr
12
comment How do I optimize large table so queries that target only recent data perform optimaly?
Also, if you could post your query(ies) that you're trying to optimize, that would be helpful.
Apr
12
revised How do I optimize large table so queries that target only recent data perform optimaly?
edited tags; edited title