SQL Server: Find out what row caused the TSQL to fail (SSIS)

前端 未结 7 1142
醉话见心
醉话见心 2021-01-13 01:57

SQL Server 2005 Question:

I\'m working on a data conversion project where I\'m taking 80k+ rows and moving them from one table to another. When I run the TSQL, it bo

7条回答
  •  悲哀的现实
    2021-01-13 02:08

    I assume you do the update with the INSERT INTO ...

    Instead try to do the update with the cursor, use exception handling to catch the error and log all you need: the row number it failed on etc.

提交回复
热议问题