Use [Company\instance].dbo.table
Referencing linked server with instance
-
01-06-2022 - |
Question
I have linked two SQL Servers and am trying to insert from one into the other.
The issue is that the server I am inserting into is actually an instance (COMPANY\INSTANCE
).
When I run my code, how do I reference a table in the linked server? I have tried Company\instance.dbo.table
but am getting a syntax error because of the backslash.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow