Re: Self Contained SQL Database



Hey Richard,
I Have a small windows application that use the sqlserver express engine with
windows authentication.
Can i use the setup project of the Visual Studio 8 to install my application
and the sqlserverExpress [as a prerequisit ]? if not, how can make an msi
that will first check all the prerequisit of my app - .net framework ,
windows installer and sqlserverExpress and just after installing it will
install my app?
Thanks alot .

Richard Mueller [MVP] wrote:
I have a full database system that I market that includes connection to SQL
Server, so it can work with the full version or SQL Express, MSDE, etc...
[quoted text clipped - 4 lines]
be running. Any great install products that can manage a self contained
version of SQL Express or MSDE?

I've decided that it cannot be done in one setup. With MSDE you could use a
merge module that combined your database and app with MSDE, but it had two
serious downsides. First, Windows Update could not recognize your customized
MSDE installation, so no security updates or SP's were applied. Second, if
you ever upgrade the first step is to un-install, which blows away the
database. I believe this option (a merge module) is no longer available with
SQL Express.

I reluctantly decided that a two step process was necessary. First have the
user install a customized version of MDSE, which installs our instance name
and allows networking. Then run another setup that attaches our database and
also deploys some utilities for the server part of our app. This gives the
customer two entries in Add/Remove programs, one for MDSE and one for our
database app. The client install is separate. If the customer already has
SQL Server, our MSDE install simply adds our instance to the existing
server.

If anything, the situation is worse with SQL Express because it requires so
many things: .NET 2.0, MDAC 2.8, Windows Installer 3.1, etc. I've decided
the only way to deploy SQL Server Express is with an InstallShield setup
program. The new versions can also install SQL Server Express, and also .NET
2.0, MDAC 2.8, etc., if needed. Doing that myself, or asking the customers
to do it, seemed too much. We will then have another setup program that will
attach our database and copy the utilities onto the server (using custom
actions in the InstallShield setup). We cannot do this in a custom action of
the SQL Server Express setup because the database would get blown away if we
ever deploy an upgrade. We need to be able to upgrade the server app without
affecting the SQL Server Express instance.

In the past I have found that after MSDE is installed, the instance is not
running (until the computer is restarted). I'm not sure about Express. In
the database install setup I always have a custom action that starts the
instance before the part of the setup where the database is attached (in a
later custom action).

Note, the database files, *.mdf and *.ldf, include all the tables, stored
procedures, etc. A backup also includes all of this, so you could have a
custom action restore a single backup file instead of attaching the *.mdf
and *.ldf files. In either case you have to know where to put the database
files. I hope this makes sense.


.



Relevant Pages

  • Re: SP2 Database Upgrade problems
    ... Try this for your DB upgrade... ... > I just recieced the Eval Kit and started the install on a fresh XP pro sp2 ... > The tools updates ok but the database engine update fails with a - "Setup ... > WEUpdate cannot retrieve information needed for setup from database. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Self Contained SQL Database
    ... I use InstallShield to create my setup program, but I assume the same issues ... When I attempted to upgrade the database, ... Even though it was much more convenient for the end user to install just one ... upgrade the database without affecting the SQL Server instance. ...
    (microsoft.public.sqlserver.msde)
  • Re: Problem creating PDA install
    ... Not that I am aware of, however, if you run the setup from the PC (and ... DLL tester that I use to also run a setup DLL through it's paces in order to ... Another option would be to install your application as it is today and then ... for the database and for the database one use the DLL option to place it ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to Add DB file with folder in VB6 Package
    ... I wouldn't recommend adding a database file in your setup but creating it ... Documents" folder. ... The problem is that if you install ...
    (comp.lang.basic.visual.misc)
  • Re: SQL server 2K5 upgrade
    ... Yes it will install database on D if install twice --one for database setup ... Aaron Bertrand [SQL Server MVP] wrote: ...
    (microsoft.public.sqlserver.setup)

Loading