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.
LVL 18
dbaSQLAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Patrick BogersDatacenter platform engineer LindowsCommented:
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?
0
dbaSQLAuthor 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.
0
dbaSQLAuthor 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]
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

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

Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS="domainname\me" /SAPWD="mypassword"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Patrick BogersDatacenter platform engineer LindowsCommented:
Good find.
0
dbaSQLAuthor Commented:
I corrected my own error.  Please close the ticket.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.