473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

deplying vb.net with SQLExpress database

2
Hello,

How do you deploy a vb.net application with a SQL express database?

My vb.net programming book offers a single paragraph that amounts to "Select publish, choose options in wizard, job done". LOL

So I gave it a try and everything seemed ok until I tried to run the program. It errored with many references to SQL... So the deployment wizard isn't smart enough to realise your application has database requirements. Strange that as all the information is sitting their in the app.config xml file. Makes you wonder why they bother exposing all this information if their own wizard can't be bothered to pick it up.

I try the wizard again and make a concerted effort to find the bit where it asks for database information. But it doesn't. I am convinced I must be missing something obvious so if anyone can point me to where or how I get the database added to the deployment I would be grateful.

Fininding the installation directory

After using the setup.exe produced by the wizard I tried to find the setup directory so I could dump a copy of the MDF and be done with it.

Does anyone know where it goes? It wasn't in Program Files, not off the root. I did a search for the exe name across the entire disk and never found it. I opened the shortcut it created but there was a long string which vaguely resembled the name of the exe repeated a few times.

Performing a manual deplyment

If however the wizard is as I suspect, a waste of time then there are a few things I need to get done manually and I wondered if anyone knew of an article that would cover the following:

1. The installation program will need to ask the location of the MDF so that it can build the connection string.

2. The connection string is going to have to be saved somewhere.

3. The program is going to have to check that some form of SQL is running and if not SQLExpress will then need to copy the contents of the MDF up to the running server (the application includes data).

Wow. VB used to be so easy, I must be getting old...

Thanks,
Lex.
Jan 21 '07 #1
1 2022
kenobewan
4,871 Expert 4TB
You are using SQL Server Express with Visual Web Developer to publish the site? There is a free utility that would help you create a mdf:
Cool SQL Server and SQL Express Command-Line Utility

However, this article may be more helpful in resolving your problem:
Recipe: Deploying a SQL Database to a Remote Hosting Environment (Part 1)

Hope that this helps.
Jan 21 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Borek | last post by:
Hello, I am getting the beforementioned error when trying to populate DataSet object with data taken from SQL2k database. Then I want to bind DataSet to GridView control. But when I use...
3
by: andrewcw | last post by:
I am trying to use the NorthWind database or anything with SQLEXPRESS on VS 2005 RC. I can see SQLExpress started with the tool SQL Server Configuration Manager. But when i select DataBase | New...
1
by: VB Programmer | last post by:
I have created an ASP.NET 2.0 site and just published it to my webserver. None of the database stuff works, including membership, etc.... because my hosting company (webhost4life) claims that they...
2
by: Crash | last post by:
Windows XP MS SQLExpress VS 2003 ..NET 1.x SP1 {for Application} ..NET 2.0 {for SQLExpress} MS Enterprise Library June 2005 This works from a command prompt osql -E -S localhost\SQLEXPRESS
13
by: Matt Fielder | last post by:
First off, if this is better posted in another group that qualifies as a manged group, please let me know. I currently have an application written in VB.Net using MSDE as the database. Current...
2
by: Michel Vanderbeke | last post by:
Hello, I have a program, running in several places, using SQLEXPRESS as database. The different places are stand-alone, and not connected to a network. Regulary, I have to apply changes on...
5
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it...
1
by: Daniel | last post by:
i seem to be having memory issues, will deplying a release build instead of a debug build help with memory usage of my .net process?
1
by: Aykut Canturk | last post by:
Can I use SqlExpress2005 AttachDatabase feature with classic ADO connections in my .asp pages ? But I need ConnectionString. Although I searched the web for couple of weeks I still coulnd't find...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.