If I want to see which values from an Excel spreadsheet column don’t match values in a table, I can easily create a table with Bulk Import. Is there a simpler way?
EG, I want to do a query like:
select into #temp from ('a', 'b', 'c') as 'Id'
select * from #temp where Id not in (select Id from MyTable)
I would recommend using this UDF to parse your list into a table. Then you should be able to do the following: