Created
May 29, 2018 08:12
-
-
Save thorsman99/0b212258893a4fb306411dfdb00544a1 to your computer and use it in GitHub Desktop.
Inserts only rows not found in destination #sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Insert into [server].database.dbo.table | |
select src.* from table src | |
left join [server].database.dbo.table sta | |
ON sta.Key = src.Key | |
where sta.Key IS NULL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment