Date Transformation from YYYYMMDD
From: bradm98 (bradm98_at_discussions.microsoft.com)
Date: 01/07/05
- Next message: Page Horton: "ASP.Net running DTS package failing"
- Previous message: ryanlence: "Re: Operating System Command (CmdExec) will not run from Job Agent"
- Next in thread: Amy: "Re: Date Transformation from YYYYMMDD"
- Reply: Amy: "Re: Date Transformation from YYYYMMDD"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 Jan 2005 10:05:05 -0800
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?
- Next message: Page Horton: "ASP.Net running DTS package failing"
- Previous message: ryanlence: "Re: Operating System Command (CmdExec) will not run from Job Agent"
- Next in thread: Amy: "Re: Date Transformation from YYYYMMDD"
- Reply: Amy: "Re: Date Transformation from YYYYMMDD"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|