SyntaxFix
Write A Post
Hire A Developer
Questions
Try this
INSERT INTO dbo.DB1.TempTable (COLUMNS) SELECT COLUMNS_IN_SAME_ORDER FROM dbo.DB2.TempTable
This will only fail if an item in dbo.DB2.TempTable is in already in dbo.DB1.TempTable.