Is it safe to say that if I’m trying to create a MERGE statment and run from SQL 2008, both the source and target database must be SQL 2008 or later?
I’m trying to run a MERGE statement on SQL 2008 where the source is a SQL 2008 database and the target is 2005…but I get red squiggles under all 2005 table references.
Are you running this on linked servers? Your second server must be in the following query result:
If so, I suggest you create temporary tables in your 2008 server from the tables in 2005 in your instance. Or better yet, create Synonyms. Here is a sample code: