Problem phenomenon:
System log files (Control Panel – Admin tools – System log)
You can find the following two errors:
17052:
Unable to recover master database. is exiting.
18052:
Error: 9003, severity: 20, Status: 1.
Workaround One:
Rename the Microsoft SQL server/mssql/data directory to the Data_bak directory, and then put Master.mdf,master.ldf,model.mdf on the other machine, Modellog.ldf to put it anywhere (or directly copy the data directory), can not be placed in the Microsoft SQL server/mssql/data this directory.
Then open the C:/Program files/microsoft SQL Server/80/tools/binn folder on the server, locate the Rebuildm.exe file and run it, reinitialize the master table, select the file, click Next to browse, Point to the folder just copied from the side of the computer, click OK to start reinitialization, prompt success (sometimes may also prompted failure, but it does not matter, because it is copied from another computer, the database file link is not the same), the point is OK to start the SQL service, Sometimes can not start the machine to restart it on it, then the database before attaching to the line, the display of doubts are deleted.
Workaround Two:
Reinstall SQL Server, generally first to remove the control Panel, and then remove the C:\Program files\sql Server installation directory, if you are installed to another disk, the other disk X:\Program Files\sql The folder for the server is also deleted, and then reinstalled.