Hello,
I'm using SQL Server 2005 and I want to synchronize two tables which have the same definition but exist in different databases. MERGE INTO only exists in 2008 and I'd prefer a syntax where I don't have to specify columns in the UPDATE. So I stumbled upon various posts using the following syntax:
UPDATE Destination FROM (Source INTERSECT Destination)
INSERT INTO Destination FROM (Source EXCEPT Destination)
But when I try to execute it I get:
Incorrect syntax near the keyword 'FROM'.
How can I get this working? I have multiple tables which I need to synchronize and I don't want to specify all the columns in every statement.
Thanks for any hint!