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 copy the Master.mdf,master.ldf,model.mdf,modellog.ldf from the other machine. Or you can just handcuff the data directory to it, and you can't put it in the Microsoft SQL server/mssql/data 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 go to the control Panel to remove, and then remove the installation directory of C:Program Filessql server, if you are installed to another disk, the other disk X:program Filessql server folder will also be deleted, Then reinstall it.