all groups > sql server dts > july 2006 >
You're in the

sql server dts

group:

Ho to trap 'Transformation Failures'


Ho to trap 'Transformation Failures' StuartGMilton
7/31/2006 4:59:55 AM
sql server dts:
Hey guys,

I am importing CSV files from a directory. These files may either have
5 columns or 4 columns (missing the last one).

I wish to import the 4 column version into an errors table in the db,
meanwhile the 5 column version is imported into the live table.

Anyone any idea how to go about this?

Stuart
Re: Ho to trap 'Transformation Failures' StuartGMilton
7/31/2006 5:07:46 AM
Having had a short search on the web, would I be able to use a
'Multiphase Data Pump'? I may be able to use the Transform Failed
method??

Anyone?
Re: Ho to trap 'Transformation Failures' amish
7/31/2006 6:44:24 AM

[quoted text, click to view]
Use SQL Server SSIS .

Use Conditional Split task in Data Flow Task and split data on fifth
columns nullability.

It will give two result set one for which fift column is null and for
which is not null

Regards
Amish shah
Re: Ho to trap 'Transformation Failures' StuartGMilton
7/31/2006 6:48:34 AM
If only we were using 2005.

Sorry I should have said we were using 2000!
Re: Ho to trap 'Transformation Failures' StuartGMilton
7/31/2006 7:00:13 AM
Is it possible to count the columns in DTSSource??

DTSSource.Columns.Count???
AddThis Social Bookmark Button