Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
How to use the windows forms application on different machine using single server

What I have tried:

Installed windows application is working on the system which has sql server but while installing the windows application on other system it is not working.
Posted
Updated 28-Sep-16 5:03am
Comments
[no name] 28-Sep-16 10:44am    
You have to change the connection string to point to the sql server.

1 solution

All what you have to do is:

  1. Enable a server network protocol in SQL Server, then the other computers will be able to connect to that server.
    Enable or Disable a Server Network Protocol[^]
  2. Create single account on MS SQL server with minimum privileges to grant acces to modify database data (not objects!)
  3. Use SqlConnection[^] to connect to the instance of MS SQL Server
  4. Create SqlCommand[^] to get/modify data.
  5. That's all!


For further details, please see:
ADO.NET[^]
ADO.NET Code Examples[^]
Create a simple data application by using ADO.NET[^]
 
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