sp_who2 Alternative (T-SQL, SQL Server)
The trusty "sp_who2" is a quick way to look at what’s happening on your SQL instance,...
The trusty "sp_who2" is a quick way to look at what’s happening on your SQL instance,...
When your security gets unruly, it can get time consuming to figure out how a user...
Here is a situation I just came across (boiled down and simplified). An end user was...
This is perhaps my most commonly used query when troubleshooting. From SQL Server DMV’s in action...
When using AlwaysOn, you must connect using your listener name, not your node name. If you connect with the node name, it will only work until there is a failover, which would defeat the purpose of your High Availability setup, right?
Query to get all currently running jobs with their run duration in seconds. Source: http://www.sanssql.com/2013/08/t-sql-query-to-find-currently-running.html SELECT...
This is a bit of a scary task. Someone tells you about 87 databases that all...
One common question I hear whenever something begins to go wrong is, “Has anything been changed...
Validate SQL Code Without Running It In a nutshell: SET NOEXEC ON; — The script now...