SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Working with Oracle Dates with SSIS


Working with Oracle Dates with SSIS

Author
Message
Jeff Baisch-303625
Jeff Baisch-303625
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 51
I am trying to create an SSIS package that copies employee data from an Oracle database and insert it into a SQL 2005 database table.

When using PL/SQL with the following query, I get "01/01/1700" for the TERM_DATE AND LAST_DAY_PAID for all active employees. I need to convert this date to NULL when entering it into the SQL table.


SELECT COMPANY, EMPLOYEE, EMP_STATUS, ADJ_HIRE_DATE, DATE_HIRED, TERM_DATE, LAST_DAY_PAID
FROM PRODLAW.EMPLOYEE


COMPANY EMPLOYEE EMP_STATUS ADJ_HIRE_DATE DATE_HIRED TERM_DATE LAST_DAY_PAID
2 290104 A1 07/21/1997 07/21/1997 01/01/1700 01/01/1700
2 7013 T1 04/03/2012 04/03/2012 05/23/2012 06/01/2012


When I created the SSIS package, the active employees, with the 01/01/1700 in the TERM_DATE AND LAST_DAY_PAID do not come through using the same query.

Any help would be appreciated.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search