dbaSQL
asked on
Rebuild system databases - failure - need an assist
One of my customers inadvertently removed a drive from the server, where all of the system databases log files were sitting. I am in the process of trying to rebuild the system databases first, so that I can restore them from backups. My statement is below. It fails every time with this error:
Exit message: The Windows account [/SAPWD=XXXXX] does not exist and cannot be provisioned as a SQL Server system administrator.
This is my statement -- I am running cmd prompt as administrator -
Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS = domainname\me [/SAPWD=XX]
BOL very clearly states this should be the password of the sa account -- which it is. The customer is certain it is, anyway. Are there any other ways around this? For example, can another admin account be used?
Very critical. Please advise.
Exit message: The Windows account [/SAPWD=XXXXX] does not exist and cannot be provisioned as a SQL Server system administrator.
This is my statement -- I am running cmd prompt as administrator -
Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS = domainname\me [/SAPWD=XX]
BOL very clearly states this should be the password of the sa account -- which it is. The customer is certain it is, anyway. Are there any other ways around this? For example, can another admin account be used?
Very critical. Please advise.
ASKER
Looking at the statement as I posted it, I believe I was incorrectly giving the sa password, when I was using my own login as the sqlsysadminaccounts. I changed it to my own password, and it fails with this message:
The Windows account [/SAPWD=mypassword] does not exist and cannot be provisioned as a SQL Server system administrator.
My password contains a cap, five lowercases lettrs, 2 numbers and 2 exclamation points. Am I correct to use the password for my account, rather than sa, and does it need to be in quotes?
Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS = domainname\me [/SAPWD=XX]
there is no login available yet, as the system databases will not recover -- because all of their log files are gone -- and the server won't start up. I need assistance with this rebuild statement.
The Windows account [/SAPWD=mypassword] does not exist and cannot be provisioned as a SQL Server system administrator.
My password contains a cap, five lowercases lettrs, 2 numbers and 2 exclamation points. Am I correct to use the password for my account, rather than sa, and does it need to be in quotes?
Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS = domainname\me [/SAPWD=XX]
there is no login available yet, as the system databases will not recover -- because all of their log files are gone -- and the server won't start up. I need assistance with this rebuild statement.
ASKER
Is the rebuild statement properly formatted? Does the sqlsysadminaccounts or the password need to be enclosed in quotes?
Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS = domainname\me [/SAPWD=XX]
Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS = domainname\me [/SAPWD=XX]
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Good find.
ASKER
I corrected my own error. Please close the ticket.
Any (sql) sysadmin Will do the job, not just SA.
Is the sql server installed with mixed login methods?
It is good to trust the customer but checking them is better, can you logon to the sql server with SA/xxxx?