Date Transformation from YYYYMMDD -
01-07-2005
, 12:05 PM
I'm very new to DTS, but here goes:
I've got a source file with dates stored as YYYYMMDD, and I'd like to move
the data into a datetime field. I've figured out the basic transformation
steps, but I'm running into a problem with source dates = '00000000' (e.g.
obsolete_date = '00000000' for products that are not obsolete).
From a 'Best Practices' standpoint, what is the best way to handle this?
I've considered a few options, but I'm not experienced enough to anticipate
the cost/benefit of each down the road:
1. Change destination field def to match source (char(8)) - I'll be using a
fair amount of date functions, though, so this adds extra work for all
queries, etc.
2. Script a transformation that changes '00000000' to NULL
2. Script a transformation that changes '00000000' to some other value
(e.g. Dec 31, 9999)
Any other options? What else should I consider when deciding? |