I have two database servers
one is server name: X and other one is server name: Y
I have a table ABC in both databases. I need to copy the data from X server, table ABC to the Y server, table ABC.
I tried this way its giving error.
INSERT INTO [X].Database.dbo.ABC SELECT * FROM [Y].Database.dbo.ABC
but I get this error:
Could not find server 'xxx.xxx.xxx.xxx' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
sp_addlinkedserver?