Showing posts with label articles. Show all posts
Showing posts with label articles. Show all posts

Monday, March 19, 2012

Installing SQL Server 2005 Express as Part of My Application

I have found a lot of info on MS site regarding installing SQL Server 2005 Express as part of an application. I have found these articles to be extremely inaccurate or at best incomplete.

1. The documentation says all I need is the setup.exe from SQLEXP but this is not true.

2. When I do launch setup.exe during my app's install, it fails because setup.exe trys to run the support.msi. Of course this causes failure because my install is also an msi.

So, does anyone know how to install SQLEXPRESS as part of my app's install?

Thanks.

Hi Shawn,

I think you might be misreading the documentation you've found, Setup.exe is simply a bootstrapper that launches other SQL component installations. You have to deploy the entire SQL Express package, not just the setup.exe file.

You should deploy either SQLEXPR.EXE or SQLEXPR_ADV.EXE with your application, depending on which flavor of SQL Express you want to install. You should call these files by chaining them together. Most installer development tools allow you to specify additional installer packages to call at the end of your application installation. VS 2005 includes the ability to specify SQL Express as a prerequisite, which will automatically include SQLEXPR.EXE in your deployment package and create a custom bootstrapper that will install SQL Express and then your custom application. I know that VS Pro includes the installer projects, I'm not sure about VS Std.

You should also explore ClickOnce Deployment, this has the same ability to deploy SQL Express as a prerequisite and is supported in all Editions of VS, including the Express Editions.

Regards,

Mike Wachal
SQL Express team

-
Mark the best posts as Answers!

Sunday, February 19, 2012

Installing SQL 2005

Hi,
Can I install SQL 2005 side-by-side with SQL 2000? Any good articles on
this?
ThanksYes. Only one instance can be default, though. the other instance(s) need to be named instances.
Plenty if information in Books Online: http://msdn2.microsoft.com/en-us/library/ms143516.aspx. But
there's nothing strange here...
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"randy" <randy@.d.com> wrote in message news:OJedqaEzGHA.4116@.TK2MSFTNGP02.phx.gbl...
> Hi,
> Can I install SQL 2005 side-by-side with SQL 2000? Any good articles on this?
> Thanks
>

Installing SQL 2005

Hi,
Can I install SQL 2005 side-by-side with SQL 2000? Any good articles on
this?
ThanksYes. Only one instance can be default, though. the other instance(s) need to
be named instances.
Plenty if information in Books Online: http://msdn2.microsoft.com/en-us/li...>
143516.aspx. But
there's nothing strange here...
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"randy" <randy@.d.com> wrote in message news:OJedqaEzGHA.4116@.TK2MSFTNGP02.phx.gbl...eagreen">
> Hi,
> Can I install SQL 2005 side-by-side with SQL 2000? Any good articles on t
his?
> Thanks
>