Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

User Defined Function in SISS

User Defined Function in SISS

User Defined Function in SISS


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).


INSERT INTO DestinationTable
    udf_cleandate(Table.Field) as CleanedDate

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.

RE: User Defined Function in SISS

You can create custom transforms or you can use a script task to build the functionailty you need.  Either way your going to have to do some vb coding.

Shoot Me! Shoot Me NOW!!!
                           - Daffy Duck

RE: User Defined Function in SISS

Hi, I built a custom transform component in C#.  Is perfect because now it's added to the SSIS toolbox I can just drag and drop it where ever it's needed.

Thanks for pointing me in the right direction.

Cheers, Graham

There are two ways to write error-free programs; only the third one works.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close