Click here to Skip to main content
16,012,611 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using VS 2008 & my application is report based.
I want to make setup of my project for that if i put my sqldatabase to DB folder in my project after detach it from server. So now i want to use this database when i deploye this project on client machin. How can i write connnectionstring is there any solution is there any need to put backup file of database.
please help me.
I don't know how to change ConnectionString so that it will automatically connected after install.
Posted

1 solution

Unfortunately you need some skill to do this... You need to have SQL & C# programming skills if you want to automate this process.

Otherwise you need to use a batch file containing some OSQL commands. For this you will require OSQL.exe too. There is no easy way to do this with a Project Installer setup project.
 
Share this answer
 

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