We backed up our SQL Server 2005 DB (master.bak, msdb.bak, etc.) and now we have problems restoring it. Apparently we have to restore the master DB in single-user mode, but we are having major issues. This is what we did:
1) Logged on as a local admin
2) Stopped the MSSQLSERVER & SQL AGENT services (logged as the local system account). We stopped all other SQL-related services for good measure
3) At cmd prompt (C:\program files\microsoft sql server\mssql.1\mssql\binn) we typed 'sqlservr.exe -m'
Here are the errors:
ERROR 18461: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. Reason: Server is in single user mode. Only one administrator can connect at this time.
Then it repeats itself and generates this message:
ERROR 18461: Login failed for user 'DOMAIN\ADMINISTRATOR'. Reason: Server is in single user mode. Only one administrator can connect at this time.
How can we get around this? Are there other services we must turn off? What am I missing? Also, I think I have to use the RESTORE DATABASE command vs. the SQL Server Mgmt Stdio GUI, correct?
Thanks
1) Logged on as a local admin
2) Stopped the MSSQLSERVER & SQL AGENT services (logged as the local system account). We stopped all other SQL-related services for good measure
3) At cmd prompt (C:\program files\microsoft sql server\mssql.1\mssql\binn) we typed 'sqlservr.exe -m'
Here are the errors:
ERROR 18461: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. Reason: Server is in single user mode. Only one administrator can connect at this time.
Then it repeats itself and generates this message:
ERROR 18461: Login failed for user 'DOMAIN\ADMINISTRATOR'. Reason: Server is in single user mode. Only one administrator can connect at this time.
How can we get around this? Are there other services we must turn off? What am I missing? Also, I think I have to use the RESTORE DATABASE command vs. the SQL Server Mgmt Stdio GUI, correct?
Thanks