Rebuild system databases - failure - need an assist

dbaSQL
dbaSQL used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Patrick BogersDatacenter platform engineer Lindows

Commented:
Hi

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?

Author

Commented:
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.

Author

Commented:
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]
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Commented:
I corrected my syntax.  It ran and completed successfully.

Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS="domainname\me" /SAPWD="mypassword"
Patrick BogersDatacenter platform engineer Lindows

Commented:
Good find.

Author

Commented:
I corrected my own error.  Please close the ticket.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial