Database Settings, Restores

Restoring a Database With CDC Enabled

When you need to restore a database to a different SQL Server instance, or perhaps to the same instance with a different database name, it's a pretty standard affair. Just backup the database, then restore it in the location you want. Easy as that, you've got the same database restored with all the data it… Continue reading Restoring a Database With CDC Enabled

Server Configuration

What Firewall Port does the DAC require

Now that you know how to enable the DAC and how to use it, you might want to know what firewall port the DAC listens on and how to set it. With your SQL Server instances, you can easily set which firewall port you want it to listen on in SQL Server Configuration Manager. Unfortunately… Continue reading What Firewall Port does the DAC require

Server Configuration

Enable the Dedicated Admin Connection (DAC) and How to Use it

If you ever find your SQL Server instance runs into some serious performance issues, you might find it's so bad, that you can't even connect to the instance. If only you could connect to run your usual troubleshooting queries to find out what's going wrong and hopefully fix it! This is where the Dedicated Admin… Continue reading Enable the Dedicated Admin Connection (DAC) and How to Use it

Backups, Maintenance

Partial Database Backups and Restores with Read-Only Filegroups

Supporting and maintaining a very large database can come with it's challenges. One of them being the backup and restore strategy. The backup sizes are huge and the duration of the full backup is very long, often too long. A common approach to improving that is to split the database into multiple files and filegroups… Continue reading Partial Database Backups and Restores with Read-Only Filegroups

Maintenance

Quick Way to Check Which is the Active Node in a Failover Clustered Instance

If you have a SQL Server failover clustered instance, often you'll want to know which server is acting as the active node. This is easy since you can just check in Windows Cluster Failover Manager which node is the current owner. But what if you have multiple clusters and you want to check them all?… Continue reading Quick Way to Check Which is the Active Node in a Failover Clustered Instance

Maintenance

Recovering a Database in Restoring State Leaves Broker Disabled

Earlier this week I came across an interesting situation where a tail log backup of some databases were taken before a migration - meaning a final transaction log backup was taken and the database was set into RESTORING state. The interesting part came where we recovered the same database on the same server (not restored… Continue reading Recovering a Database in Restoring State Leaves Broker Disabled

SQL Server Management Studio

How to Silently Install SQL Server Management Studio

If you find that you're installing SQL Server Management Studio (SSMS) often or on many servers, you might find that installing it silently, a.k.a. unattended, is more suitable than installing it through the usual method using the install wizard. First, you can download the latest SSMS installer from Microsoft's SSMS download page, or from this… Continue reading How to Silently Install SQL Server Management Studio

Server Configuration

Configure Database Mail and Test it – All using T-SQL

When configuring a new SQL Server instance, you probably want to configure Database Mail. As with all your post install configuration changes, it's better to do it using a script to save yourself a whole heap of time while ensuring all your SQL Server instances are standardised and consistent. Unfortunately it's not as easy to… Continue reading Configure Database Mail and Test it – All using T-SQL