Advertisement

05.20.2008 at 07:59AM PDT, ID: 23417399
[x]
Attachment Details

Install SQL Database creation scripts automatically

Asked by pucketta17 in SQL Server 2005, .Net Editors & IDEs, Visual Studio .NET 2005

Tags: VB .net 2005 SQL Server Express 2005

I am trying to create a custom installation package  that won't take my end users very many steps.   Currently there are 4 - (1) Install .dot net (which I am not worried about because most of the machine have it already (and it runs with the setup.exe that I created from Visual Studio), (2) Install SQL Server Express with management studio (234 MB - ouch!)  (3) Create the database by running the sql scripts within Management Studio and (4) install the software itself.   Though this process does work, I would like to make it a little easier.   Our end users aren't exactly technically savvy and will run into problems.  Also with my limited experience of SQL Server, it is hard to rectify created instances, etc without a lot lof work that they won't understand.   In addition, with our distribution strategy, it makes it hard with this many steps!

I would like to be able to have them just install the basic version of SQL Server Express (approx 30 MB) and have the database creation scripts create automatically.  (Did I mention that our end users are impatient too?)   I have created the setup.exe from Visual Studio and that is fine, except I need them to specify the Instance of the DB, and there isn't a way to prompt for that (as far as I can tell). (And if I leave it as the default, I need to be able to change the VB config file on the fly then...)  It seems like you can do all of this independently but when it all tries to work together, it doesn't jive.  (I also am just starting out with .net and sql server express...so I am not saying it isn't operator error)

When I create my SQL Scripts - is there a way to run them automatically?  What if there is already an instance installed?  (My scripts automatically try to create the first instance - I can change it manually - but I am not going to know what all of my users have installed!)  What if I need to upgrade the DB?  I wasn't sure how to create the checks for these?  Oh and I just created the SQL Scripts but right clicking on the database and creating them.  I added the insert statements, but other than that they were created by SQL Server.

Please let me know what else you need from me or if there is anything I can do to make this easier!!!  

THANKS!

And then now my big question - is it possible to create all of this in one nice step?  Start Free Trial
[+][-]05.20.2008 at 09:40AM PDT, ID: 21607923

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.21.2008 at 04:32AM PDT, ID: 21613839

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, .Net Editors & IDEs, Visual Studio .NET 2005
Tags: VB .net 2005 SQL Server Express 2005
Sign Up Now!
Solution Provided By: Cedric_D
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.21.2008 at 09:17AM PDT, ID: 21616577

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628