Click here to Skip to main content
16,018,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

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
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900