Gouache painting of two wooden tumbler toys on a shelf, one tipped over and one upright in vermilion

How to Auto Start SQL Server After a Crash

To auto start SQL Server after a crash, set the Windows service to restart itself on failure, and set its start mode to Automatic for a reboot. This post checks what a server has today with T-SQL and the sc command, sets the three places that matter, and shows how to find the cause of the crash. A restart gets the server running again, and it doesn’t find the cause.

Read More
Gouache painting of two identical locomotives on parallel tracks with a vermilion switch lever moving one to a new line

Mirrored Database: Move Files Without Breaking Mirroring

To move the files of a mirrored database, change the file paths on the principal with ALTER DATABASE, stop both instances, move the files, and start them again in the right order. This post tests the T-SQL steps on a demo database and describes the mirroring steps from the documented behavior. It also covers what to check afterward.

Read More