Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Respected sir,
I have problem regarding,
My application created using c#.net and my database resides in another computer
now i wnt to perform like,i wnt to add data through the application..
there is no internet connectivity on server computer,,,
and two computers are connected through LAN..
so plz solve my problem,,as soon as possible
thank u
Posted

All you need to do is establish a connection via the LAN. If you are using SQL server, then try setting up a connection in VS with the Server Explorer pane:
1) Open Server Explorer.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource, and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file.
 
Share this answer
 
Hi,
You just have to change the connection string.
For connection string Go to this link -
connection strings[^]
 
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