Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear sir,
I am developing an asp.net project.Here I am working on a Student Management project. There are two systems and they are connected through LAN. On my first system there is a sql server database on which the library application based and worked properly. But the second system is a Windows Server 2008. And I have developed another Student Management project , which had installed in this server and work correctly.But I want the server should use my sql database as well as the Library database of the first system.

How could I use the connection string for use the second system.They all are connected properly and pinging successfully. But the sql server can,t connect from server to client and vice-varsa.
when I want to connect them through their IP Address it shows me Error No40.

plz help me for use two server and two databases from the different system.
Posted
Comments
ZurdoDev 25-Apr-14 8:50am    
Refer to connectionstrings.com for what it should look like. But it's pretty easy, use the ip address if the name won't resolve.
bigyan sahoo 25-Apr-14 9:25am    
Sir I use the IP Address in connection string but it couldn't open the connection.
Herman<T>.Instance 25-Apr-14 9:50am    
are the databases in the same server?
if no. Have the users the same priviliges?
ZurdoDev 25-Apr-14 12:18pm    
1. You need to reply to comments so that the user is notified. I was not notified, I happened to come back and look.
2. You have to provide the right information on how one machine can connect to the other. It is really that simple.

1 solution

you can connect another server instance using link server.
go for this link to see the steps..

[^]
 
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