Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a C# application and sql server database the application and the database are connected and the application works fine on one machine, i want to put the database on another machine ( server ) and to put the application on several machines ( clients ), i do not know what i have to learn to do this and where, i would be thankful if you give me a link for ebook or tutorial or what you see better.
Posted
Comments
ZurdoDev 21-Feb-14 7:30am    
Where is your connection string?
fgeaiessah 21-Feb-14 7:36am    
The connection string
Data Source=(local);Initial Catalog=dbMCWorkShop;Integrated Security=True
ZurdoDev 21-Feb-14 7:38am    
Then all you have to do is move your database and update your connection string so the code knows how to connect.

The Microsoft MSDN web site has information on this topic.

MSDN Search for SQL SERVER CONNECTIONSTRING
 
Share this answer
 
Here[^], you will find How to establish connection to SQL Server from Microsoft Visual Studio.
Now, you can access the remote SQL Server Database by it's server name and proper user credentials.
For example,
Server=myServerName\myInstanceName;Database=myDataBase;User Id=myUsername;<br />
Password=myPassword
;
So it could be done through it.

Another possible solution is, create one Web Service that can manage all the Database Transactions and all of your clients have reference of it. [This would help you out in Cross Platform Development as well ;)]

-KR
 
Share this answer
 
 
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