I'm trying to insert/update all the 25 tables in destinationDB
in SQL Server 2014 from sourceDB
which is on SQL Server 2000 based on the recid
.
I saw few examples on single table insert using the linked server. Can I update/insert all the tables in the database using below script. I need to do this for all the 25 tables. Any help is appreciated. Thanks
I need to do achieve something like this:
INSERT INTO [DestinationDB]
SELECT *
FROM SourceDB
LEFT JOIN [DestinationDB] ON DestinationDB.recid = SourceDB.recid
WHERE Destination.Recid IS NULL