Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created one c#.net application.
in that application back-end is sql server.
when the application and database are on same machine , it works fine.
i want to know how can i connect my application with remote server database.
means the database will be in remote computer , they will connected through LAN.

if any one know how to do this, PLEASE reply.............


when i assign Data Source as server ip address it gives error....


at client side which software i have to install........please help.....
and how to allow intranet zone at client side........
Posted
Updated 20-Jul-11 1:50am
v3
Comments
Toniyo Jackson 20-Jul-11 2:18am    
Just change the server name to remote server ip in connection string.

specify your database server name and instance name in the 'Data Source' attribute of the connection string. If it is the default instance, specify the server name alone.
 
Share this answer
 
Comments
yogesh89 20-Jul-11 7:47am    
thank it works.........
 
Share this answer
 
Comments
yogesh89 20-Jul-11 7:47am    
thnks for help........
hi,
try this,
connectionString="Data Source="ip";Initial Catalog="";User ID="";Password=""
 
Share this answer
 
Comments
yogesh89 20-Jul-11 8:06am    
thank but now i need this...........
at client side which software i have to install........please help.....
and how to allow intranet zone at client side........
Possible solutions:

Check in IIS on the server that the default port is open or that you don't have to connect to a specific port? i.e. 192.168.something.something:5555 may be blocked.

Check firewall settings on server?

Check that the server is on the same sub-net within the LAN?

In the connection string set TrustedConnection to true ?

Hope that helps
 
Share this answer
 
v3

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