Click here to Skip to main content
13,298,361 members (55,390 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I have VB.NET System ;
I wanna to make setup (.exe) for the program.
The Program depend on SQL Server Database.
How I can make it exe file with the database, and to install all the configuration on any PC.
What I shall do according to the connection string ; since the server name will change?
I don't have background in that ; any helpful articles or information ?
Posted 21-Nov-12 4:36am
joshrduncan2012 21-Nov-12 9:42am
How are you deploying your .exe file? Visual Studio ClickOnce or InstallShield? If you have a database, you'll need to do something like this:

Data Source=|DataDirectory|\\db.sdf
almounkez 26-Nov-12 16:37pm
for connection string you have to change it by code
my.application.setting.myconnectionstring = "new connection string"

you can also use installaware to install your application with sql server on the client machine

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171207.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100