Hi
Please bear with me I've been using SSIS for two days now.
We have a data migration routine that is currently a set of stored procedures that pulls data from multiple databases and consolidates it in one database for reporting purposes. I have been asked to move this into SSIS.
One of the issues that we have with the existing databases is that dates are stored in multiple formats throughout.
Currently this is addressed using a udf that converts all the dates to a fixed format during consolidation. So each date is wrapped in this function (unfortunately it is not currently an option to standardise dates throughout).
e.g.
INSERT INTO DestinationTable
SELECT
Field1,
Field2,
udf_cleandate(Table.Field) as CleanedDate
etc...
Is the SSIS so far I have a data source and a I was trying to use a derived column to create the cleaned date. The only way I can see is to recreate the udf_cleandate functionality in every Expression. Is there any way that I can add my udf to the available functions in the right-hand window, or am I going about this all wrong.
I've been googling all day so if anyone can at least point me in the right direction it would be much appreciated.
Cheers, Graham
There are two ways to write error-free programs; only the third one works.
Please bear with me I've been using SSIS for two days now.
We have a data migration routine that is currently a set of stored procedures that pulls data from multiple databases and consolidates it in one database for reporting purposes. I have been asked to move this into SSIS.
One of the issues that we have with the existing databases is that dates are stored in multiple formats throughout.
Currently this is addressed using a udf that converts all the dates to a fixed format during consolidation. So each date is wrapped in this function (unfortunately it is not currently an option to standardise dates throughout).
e.g.
INSERT INTO DestinationTable
SELECT
Field1,
Field2,
udf_cleandate(Table.Field) as CleanedDate
etc...
Is the SSIS so far I have a data source and a I was trying to use a derived column to create the cleaned date. The only way I can see is to recreate the udf_cleandate functionality in every Expression. Is there any way that I can add my udf to the available functions in the right-hand window, or am I going about this all wrong.
I've been googling all day so if anyone can at least point me in the right direction it would be much appreciated.
Cheers, Graham
There are two ways to write error-free programs; only the third one works.