I\'ve been getting the error \"Conversion failed when converting from a character string to uniqueidentifier\" and am finally at the end of my rope. I\'ve narrowed down my p
Looks like I misread the question the first time. Good job producing a test script that reproduces the error. The following works for me:
delete dbo.ZZZTESTTABLE
WHERE Col1 in
(
select Z.Col1
from dbo.ZZZTESTTABLE Z
LEFT JOIN dbo.DelimitedSplit8K(@temp, ',') S on S.Item = Z.Col1
where S.Item is null
)
OPTION (force order)