本文介绍了SQL 2005 Express Edition - 安装新实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

寻找一种以编程方式或以其他方式向已安装实例的系统添加SQL 2005 Express Edition的新实例的方法。传统上,你运行Micrsoft的安装程序像我在下面的命令行,它做的伎俩。在我的安装程序中执行命令不是问题,它是更多的拖动周围的40 MB的MS-SQL安装程序,我不需要,如果他们已经安装了SQL Express。这是我的安装程序当前执行的:

Looking for a way to programatically, or otherwise, add a new instance of SQL 2005 Express Edition to a system that already has an instance installed. Traditionally, you run Micrsoft's installer like I am in the command line below and it does the trick. Executing the command in my installer is not the issue, it's more a matter of dragging around the 40 MBs of MS-SQL installer that I don't need if they have SQL Express already installed. This is what my installer currently executes:

SQLEXPR32.EXE /qb ADDLOCAL=ALL INSTANCENAME=<instancename> SECURITYMODE=SQL SAPWD=<password> SQLAUTOSTART=1 DISABLENETWORKPROTOCOLS=0

我不需要帮助启动此命令,添加一个新的SQL 2005 Express实例,而不再次运行完整的安装程序。

I don't need assistance with launching this command, rather the appropriate way to add a new instance of SQL 2005 Express without actually running the full installer again.

我会详细介绍为什么我想这样做,但我会简单地让每个人。只要说,有这种能力创建一个新的实例,而不需要花费时间重新安装SQL Express等将大大有助于我部署我的应用程序和它的安装程序。

I'd go into great detail about why I want to do this but I'd simply bore everyone. Suffice to say, having this ability to create a new instance without the time it takes to reinstall SQL Express etc. would greatly assist me for the deployment of my application and it's installer. If makes any difference to anyone, I'm using a combination of NSIS and Advanced Installer for this installation project.

推荐答案

几个月后,如果对任何人有任何不同,我将使用NSIS和高级安装程序的组合。 /几年来看来,它似乎无法做到。哦,我想我只是重新安装每次我想要一个新的实例。我想这是因为每个实例是它自己的服务。

After months/years of looking into this it appears it can't be done. Oh well, I guess I just reinstall each time I want a new instance. I guess it's because each instance is it's own service.

这篇关于SQL 2005 Express Edition - 安装新实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 03:48