cmd line SQL server 2008 express install
14,034
I use this and it works:
Setup.exe /q /ACTION=Install /SkipRules=VSShellInstalledRule RebootRequiredCheck /HIDECONSOLE /FEATURES=SQL /INSTANCENAME=xxx /SECURITYMODE="SQL" /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /SAPWD="XXXXXXXXX" /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS" /ENABLERANU=1 /AGTSVCACCOUNT="NT AUTHORITY\SYSTEM" /TCPENABLED=1 /ERRORREPORTING=1
Related videos on Youtube
Author by
Balaram Palasamudrum
Updated on June 04, 2022Comments
-
Balaram Palasamudrum almost 2 years
I am trying to install SQL server 2008 express on windows 7 64 bit machine using the following command:
Setup.exe /qs /Action=Install /Features=SQL /InstanceName=XXX /SQLSYSADMINACCOUNTS="Builtin\Administrators" /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM"
I can not access the database and get "access denied" error. I narrowed down the issue to the
/SQLSYSADMINACCOUNTS="Builtin\Administrators"
parameter not working. When I change this parameter value to currnet user or try manual install it works-
SLaks about 14 yearsIs your user account in the Administrators group?
-
Balaram Palasamudrum about 14 yearsyes, it is a member of Administrators group
-
ctrlalt313373 over 12 yearsI'm getting this same issue too. SQL Server 2008 Express installs fine, but skips adding the users. Only seems to happen on Win7.
-
-
Balaram Palasamudrum about 14 yearsThanks for the reply. I tried <hostname>\Administrators, did not work. I tried to do post-setup using sqlcmd, it complains - user do not have permission to perform this action. Any idea?
-
Balaram Palasamudrum about 14 yearsI still love to hear the real solution for this, but I resolved this issue by using parameter /SQLSYSADMINACCOUNTS="%USERDOMAIN%\Users", this is ok since the DB is used only by our app and does not raise any red flags from the users.