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 many sailboats at a new dock while one vermilion boat remains at the old dock

Move the Master Database to a New Location in SQL Server

To move the master database, change its startup parameters in SQL Server Configuration Manager, stop SQL Server, move the files and start it again. This post explains why ALTER DATABASE can’t move master, reads the current paths with T-SQL, and lists the steps and the permission check that stops most failed moves. It also says what to do when the instance won’t start afterwards.

Read More