Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends
i have an accounting software project that i design with c# winform,the project have about 50 form, they draw their information from my tables in my my database which i created with sql server.i am connecting to my database with this connectionstring("Data Source=Ese-PC;Initial Catalog=PIMS; User ID=sa;PWD=ese");
here is my problem i want to deploy/package this app to be installed in 10 computers which are connected over a local area network and has a server where my database will be i suppose.i have packaged ordinary winform before but have not deployed any winform that has a database involved, can someone help me out here
Thanks in advance
Posted

1 solution

Hi Ese,

your app.config file will hold the information of your connection to the database(loacated in the server). so try to change your connection to get access to the database in the server.
Once done, deploy your application, there is no additional requirement as long as your target PC have access to the server.

Good luck.
 
Share this answer
 
Comments
Ese ochuko 16-Nov-13 5:55am    
Hi tank u very much for your reply, you know have not done this before, so i have some more question,if i put the connection string in the app.config, dose that mean i have to remove the conection from all my forms,if so, how am i going to make my form use the conectionstring in the app.config. You said i should change my conectionstring to the server dose that mean that if i want to install this software in another place with a diferent server,i have to re_deploy again,please help me because i truely dont have any idear.thanks
Ziee-M 18-Nov-13 3:12am    
Hi Ese, it seems you are using SqlConnection(i am not sure), in that case your connection string is set pragramatically, so you dont have to put it in the app.config.
For deploying in diffrent servers, you have to change the connection string and redeploy, since you connectionstring holds the server credantials and the server name...
i suggest you to start the deployment process, you will very soon notice that its not hard.
the first step is to change the connection string to access the server dataBase from your application(installed in a target PC).
Ese ochuko 26-Nov-13 2:42am    
Thanks i will step on it immediately

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