Repair master db in SQL Server 2005
To rebuild the system master databases you need to run the setup command from the Command prompt and follow the following steps:
1. Click Start, click Run, type cmd, and then click OK.
2. Run the following command to rebuild the system databases of sql server 2005:
start /wait <CD or DVD Drive>\setup.exe /qn INSTANCENAME=Instance_Name REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=StrongPassword
example:
start /wait D:\setup.exe /qn INSTANCENAME=MSSQLSERVER REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=YourSAPassword
Replace YourSAPassword to your current sa login password.It will work fine.
To rebuild the system master databases you need to run the setup command from the Command prompt and follow the following steps:
1. Click Start, click Run, type cmd, and then click OK.
2. Run the following command to rebuild the system databases of sql server 2005:
start /wait <CD or DVD Drive>\setup.exe /qn INSTANCENAME=Instance_Name REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=StrongPassword
example:
start /wait D:\setup.exe /qn INSTANCENAME=MSSQLSERVER REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=YourSAPassword
Replace YourSAPassword to your current sa login password.It will work fine.
Comments
Post a Comment