I have a small demo windows forms application, which has 2 forms.
-
enter a name in the first form, which will add the name to a table in the database. The back-end used is SQL Server 2008.
-
After successful entry in the database, the user is prompted to the second form, which is basically a demo calculator.
My question is how can I deploy this project to some other machine. Wana create a normal executable file, in the other machine.
I was able to deploy one another windows forms app, which was without a SQL database connection, by using the Setup and Deployment wizard of the VS 2008.
Also, does the other machine would have to have certain prerequisites, like presence of SQL server in it?
I googled… found some MSDN links but could not find meaningful results.
Any assistance or an external pointer to this scenario would be highly appreciated.
You can get connections string using
ConfigurationManagerand set connection string in app.config.Getting connection string from app.config example:
After deploy you application you can change app.config manually or make in your app simple form for set connection string.