Click here to Skip to main content
15,918,742 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
How can I link two sql databases on a different environment. The one I have to login through vpn (Pulse) and the other one is on my network. I need this to update columns in the database that I connect to through vpn. Please help

What I have tried:

Have tried the following:
SQL
select * from idmsSMSOutBox, [10.100.10.12].[SybABCBotDist].[dbo].[idmsSMSOutBox]
Posted
Updated 19-Apr-17 3:24am
v2
Comments
ZurdoDev 13-Apr-17 7:17am    
Create a linked server. google for sql linked servers.
Oggies14 13-Apr-17 7:28am    
Will it connect through a vpn
ZurdoDev 13-Apr-17 7:47am    
It connects over the network. So, you would have to connect via vpn but then sql doesn't care. It just has to be able to reach the ip.

1 solution

As @RyanDev said, set up the database on the VPN as a Linked Server. There is an article on older versions here on CodeProject How to Config Linked Servers in a Minute[^] and another example here - Setting up a Linked Server for a Remote SQL Server Instance — DatabaseJournal.com[^]
You've tagged the question with MySQL as well, so you may find this useful Create a linked server to MySQL from SQL Server[^]

It seems you can already log on to the VPN but for the linked server you may need to use a group logon or similar - you will need to discuss this with your network people who manage the servers. Check with them that there are no firewalls blocking any ports you might need. SQL server linked servers don't really care how the servers are connected (LAN vs VPN vs Cloud) as long as they can be accessed.
 
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