Conversion failed when converting from a character string to uniqueidentifier error in SQL Server

后端 未结 4 644
别跟我提以往
别跟我提以往 2020-12-20 12:15

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

4条回答
  •  渐次进展
    2020-12-20 13:07

    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)
    

提交回复
热议问题