SQL2012的命令行安装,带有错误报告 [英] Command line install of SQL2012 with error reporting

查看:102
本文介绍了SQL2012的命令行安装,带有错误报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在9个月前问过Stack Overflow这个问题,但是没有人能够提供帮助。也许有人在这里可以吗?



我已经使用SQL2005 Express与我们的.NET应用程序打包了很多年了,我有一个安装了SQL的命令行设置默默地(显示对话框,机器人没有要确认的模态)但是如果出现错误(例如缺少先决条件)则会提醒用户。 SQL 2012 Express有一组非常不同的命令行参数,我很难找到一个集合(在命令行或使用配置文件),这将给我我需要的东西,我认为这是相当普遍的。



如果出现错误,设置/ QS参数会以静默方式安装,但会突然关闭,而不会发出警告。我知道会生成错误日志,但是以编程方式查找和提取文本会很麻烦。



使用UIMODE =AutoAdvance而不是足够沉默;它在对话框(例如特征选择)处停止,该对话框要求用户输入他们可能不理解的输入。我不明白为什么它停在这里已经在配置文件中指定的功能



我们现在需要SQL2012在Windows8机器上安装。我正在尝试的命令行安装如下。在此先感谢您的帮助!

I asked this question of Stack Overflow 9 months ago but no-one has been able to help. Perhaps someone here can?

I have been using SQL2005 Express packaged with our .NET app for a number of years, and I had a command-line setup that installed SQL silently (dialogs shown, bot no modals to acknowledge) but did alert the user if there was an error (e.g. a missing prerequisite). SQL 2012 Express has a very different set of command-line parameters and I am struggling to find a set (either on the commmand line or using a config file) that will give me what I need, which I would have thought is pretty commonplace.

Setting the /QS parameter installs silently but just closes abruptly, without warning, if there is an error. I know an error log is produced but to find and extract text from that programmatically is going to be a pain.

Using UIMODE="AutoAdvance" instead is not silent enough; it stops at dialogs (e.g. 'Feature Selection') which ask the user for an input they probably won't understand. I don't understand why it stops here for features that have already been specified in the config file

We now need SQL2012 for installing on Windows8 machines. The command line install I am trying is below. Thanks in advance for any help!

SQLEXPR_x64_ENU.exe /ACTION=Install /UpdateEnabled=False /QS  /INSTANCENAME=MyInstance /FEATURES=SQLEngine /TCPENABLED=1 /SECURITYMODE=SQL /SAPWD="Pa55w0rd"  /SQLSYSADMINACCOUNTS="Builtin\Administrators" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /IAcceptSQLServerLicenseTerms

推荐答案

您好,



您想使用ConfigurationFile.ini进行安装吗?如果是这样,我可以帮你解决这个错误。



问候

Kareem.S
Hi,

Would u like install using ConfigurationFile.ini? If so I can help u out with this error.

Regards
Kareem.S


这篇关于SQL2012的命令行安装,带有错误报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆