All the changes for this release can be found in the Github Project page Mainly bug fixes this time around , but we have also added new functionality: Improvements #263 If you centralize your Servers' collections into a single database, you may be interested in the latest addition, we added the ability to override most... Continue Reading →
SQL Server login – default database and failed logins
This is one of them little options that I see which quite often gets little consideration, or gets set to a user database without consideration of what the consequences may be if that default database becomes unavailable. There are going to be situations where setting a default database other than the master database is essential.... Continue Reading →
Troubleshooting Resource Semaphore and Memory Grants
Memory grants, now here's a fun thing that can pretty much take your SQL Server to its knees. The Symptoms The first thing that you're going to notice is that your SQL Server is going to be running slowly and I mean, slooooooow! When I've got a server on a serious go slow, the first... Continue Reading →
Getting table row counts with sp_Tablecount
Sometimes you just want to get a quick row count for a specific table - other times you may want to see a list of tables order by size or row count or perhaps you are monitoring table row counts, whatever it is the chances are you have a script or various scripts stashed away... Continue Reading →
sp_LockDetails – Get Details of all Locks Taken Out Against a Database.
Be sure to get the latest version of this script from our GitHub, https://github.com/SQLUndercover/UndercoverToolbox Have you ever wanted a quick and easy way to see who was holding (and waiting on) locks on a particular database? Perhaps you've got some blocking issues going on and you want to see exactly which rows the row level... Continue Reading →
To use ALTER DATABASE, the database must be in a writable state in which a checkpoint can be executed. – when moving files on an Availability Group secondary.
Here's a little error that I stumbled across the other day when trying to migrate the data files of an Availability Group secondary node onto a nice new SAN. I started off by running the following command against the secondary server. ALTER DATABASE SQLUndercover MODIFY FILE (NAME = 'AG01', FILENAME = 'E:\DATA\AG01.mdf') There's nothing wrong... Continue Reading →
Filling Missing ID Codes In SQL
This is going to be a bit of a brain storming post that comes from an interesting question that I was asked today... "I've got a table with a ID code field, now some of the rows have a value in that field and some are NULL. How can I go about filling in those... Continue Reading →