SQL Server 2005 Question:
I am working on a data conversion project where I take 80k + rows and move them from one table to another. When I run TSQL, it bombes various errors related to type conversions or something else. Is there any way to find out which line caused the error?
=======================
UPDATE:
I am doing INSERT INTO TABLE1 (...) SELECT ... FROM TABLE2 Table 2 is just a bunch of varchar fields where TABLE1 has the correct types.
This script will be placed in sproc and executed from the SSIS package. First, the SSIS package imports 5 large flat files into TABLE2.
Here is an example error message: "Converting a char data type to a date and time data type resulted in a date and time value out of range."
There are many date fields. Table 2 contains data values such as '02/05/1075' for the date of birth. I want to examine every line that causes an error, so I can tell the department responsible for the bad data so that they can fix it.
source
share