命令行 SQL Server 2008 快速安装
我正在尝试使用以下命令在 Windows 7 64 位计算机上安装 SQL Server 2008 Express:
Setup.exe /qs /Action=Install /Features=SQL /InstanceName=XXX /SQLSYSADMINACCOUNTS="Builtin\Administrators" /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM"
我无法访问数据库并收到“访问被拒绝”错误。我将问题范围缩小到 /SQLSYSADMINACCOUNTS="Builtin\Administrators"
参数不起作用。当我将此参数值更改为 currnet 用户或尝试手动安装时,它可以工作
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我用这个并且它有效:
I use this and it works:
我认为如果您使用“域”限定的管理员帐户名而不是通用名称,它将起作用。例如。例如
\Administrators
其中 是安装实例的计算机名称(因为在本例中是 NT 域的名称)。如果它不起作用,您始终可以在 /SQLSYSADMINACCOUNTS 下使用当前用户运行安装程序,并执行安装后步骤将本地管理员添加到 sysadmin。
I think it will work if you use the 'domain' qualified Administrators account name instead of the generic moniker. Eg. like
<hostname>\Administrators
where is the machine name where the instance is installed (since is the name of the NT domain in this case).If it doesn't work, you can always run the setup with current user under /SQLSYSADMINACCOUNTS and have a post-setup step that adds the local administrators to sysadmin.
您可以使用 ConfigurationFile.ini 文件设置正确的参数,该文件是在安装前的最后一步中执行正常 SQL Server 设置过程时创建的。只需复制屏幕下方显示的该文件的路径,然后复制/粘贴您需要的配置参数即可。
您会注意到
SQLSYSADMINACCOUNTS
参数已设置为您的本地管理员帐户,请将其替换为SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS"
You can set the correct arguments by using the ConfigurationFile.ini file in which been created when you go through the normal SQL Server setup procedure in last step before installing. Just copy the path of this file which appears below the screen and copy/paste the configuration arguments you need.
You'll notice that the
SQLSYSADMINACCOUNTS
argument been set to your local administrator account, replace it like thisSQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS"