NASA Will Pretend To Crash Into Saturn

Source: http://www.vox.com/science-and-health/2016/12/11/13858448/cassini-saturn-rings-nasa Many of us have figured out that NASA is just a public-relations organization to fake-win the space race and grab billions upon billions of tax dollars under the guise of “research”.  Well, now they want to crash land onto Saturn, which only makes sense since the “spacecraft” is running out of gas.  No, I’m… Read More »

SQL Server Maintenance Plan Backups Failing On Secondary Replica in High Availability Environment

When a High Availability (HA) environment failed over, on the node that became Secondary, the backup jobs did not gracefully handle the change. The Maintenance Plans are supposed to intelligently determine whether each database is Primary or Secondary in an HA environment, and skip the backup if it is not Primary.  This check actually fails… Read More »

TSQL – Make Excel Link In Output

Here is a situation I just came across (boiled down and simplified).  An end user was having to manually find a user id, navigate to an image folder, and then search through hundreds of images to find the one corresponding with that user.  Sure, they were in numerical order, but still, what a pain!  He wanted to… Read More »

TSQL – Get All Queries Currently Running

This is perhaps my most commonly used query when troubleshooting. From SQL Server DMV’s in action ebook. The output shows the spid (process identifier), the ecid (this is similar to a thread within the same spid and is useful for identifying queries running in parallel), the database name, the user running the SQL, the status… Read More »

PowerShell – Get All SQL Instances On Server

This script will return all SQL instances running on a server or list of servers. cls Import-Module -Name SQLPS -DisableNameChecking $servers = “SERVER_NAME”, “SERVER_NAME_2”, “ETC”; foreach($server in $servers) { $path = “SQLServer:\SQL\” + $server; $instances = Get-ChildItem -Path $path; $instances; }