Why would you NOT set IGNORE_DUP_KEY to ON?

后端 未结 5 643

IGNORE_DUP_KEY = ON basically tells SQL Server to insert non-duplicate rows, but silently ignore any duplicates; the default behavior is to raise an error and a

5条回答
  •  感动是毒
    2021-01-04 22:16

    It can be used as a sanity check. If you know that there should be no conflicts leave it off and it will fail fast on bugs. OTOH for ad-hoc console sessions, I see your point.

提交回复
热议问题