How to insert a row into a linked server table?
问题 I have a server SourceServer I am connected to which has a linked server TargetServer. How should an insert statement looks like (I need to reference Linked server, database, namespace, table): //Connected to [SourceServer] USE [SourceDatabase] DECLARE @HelloWorld NVARCHAR(255) SELECT @HelloWorld = Name From dbo.Names where Id = 1 INSERT INTO [TargetServer].[TestDatabase].dbo.TestTable (Name) VALUES (@HelloWorld) This statement executes with an exception: Too many prefixes. Update: The syntax