My server 2 uses SQL Server 2008 R2
I have a local SQL server, as well as an Amazon machine that is running an instance of SQL-Server.
I can connect from my local machine to this Amazon SQL using the standard connection 10.10.10.10, 1433 from my local Management Studio.
Now I need to fulfill the request, which says: "Allows me to record those records that I have locally that are not currently on the Amazon server.
Sort of:
SELECT * FROM [LOCAL].dbo.Table1 WHERE Field1 NOT IN (SELECT Field1 FROM [AMAZON].Database1.dbo.Table1)
================================== Question:
I do not know how to write "AMAZON" in the Query window itself, since it works on another server.
Any help really appreciated !!!
source share