Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,
How to connect SQL Server using Instance Name not using ip address? Actually SQL Server is not showing Instance Name in Network Server whereas if I connect same remote SQL Server using IP address it is connected well.

I have a network scenario of different gateway say :

1. 192.168.3.1
2. 192.168.4.1

I need to connect access SQL Server of 192.168.4.1 from 192.168.3.1 using Instance not using IP address. Instance from same gateway are only show in Network Server.

Please help me in this problem.
Thanking You
Posted
Comments
Herman<T>.Instance 5-Nov-15 6:05am    
What is the machine name for the 192.168.4.1? Have you checked using SSMS? That will reveal servername and Instancename
Gopal Rakhal 6-Nov-15 4:55am    
Ya, checked using that also it is not working,Is there any thing to do with firewall if firewall is already off.
I am surprised that remote sql server can be access using IP address of that computer but when I use Instance name its is showing network related error, It is also not showing in Network server tab in connect windows
Corporal Agarn 5-Nov-15 6:54am    
Are these linked the servers? (sp_addlinkedserver)
Gopal Rakhal 6-Nov-15 4:59am    
These are simply remote sql server but in VPN

1 solution

You have to use the IP address. The instance is just added on after the IP address. 129.168.4.1\instancename. See http://www.connectionstrings.com/sqlconnection/connection-to-a-sql-server-instance/[^]
 
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