سؤال

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.

هل كانت مفيدة؟

المحلول

Use [Company\instance].dbo.table

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top