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

前端 未结 7 1254
醉话见心
醉话见心 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:15

    This is not the way to do it with SSIS. You should have the data flow from your source, to your destination, with whatever transformations you need in the middle. You'll be able to get error details, and in fact, error rows by using the error output of the destination.

    I often send the error output of a destination to another destination - a text file, or a table set up to permit everything, including data that would not have been valid in the real destination.


    Actually, if you do this the standard way in SSIS, then data type mismatches should be detected at design time.

提交回复
热议问题