Hi Team,
We have a situation where we are getting NULL value for date field.
We are trying to set it NULL in transformer using SetNull() function.
But while loading to the target we are getting error as NULL cant be inserted in database.
Date Columns are nullable clomn in target.
Our source and target database is Teradata 13.
Regards,
Santosh
How to pass NULL to Date Field
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 258
- Joined: Tue Jul 04, 2006 10:35 pm
- Location: Toronto
Re: How to pass NULL to Date Field
Instead of setting it to NULL set it to something like 09/09/9999
-
- Participant
- Posts: 251
- Joined: Mon Jun 09, 2008 5:52 am
Re: How to pass NULL to Date Field
You do realize these two statements are contradictory? If your target column was in fact nullable then the error noted would not be occurring. I would suggest you first confirm that your actual database column does not allow nulls and then ask what sort of 'in-band' null value would be appropriate there instead. We use "12/31/9999" as that value where I currently work, as one example.srai wrote:But while loading to the target we are getting error as NULL cant be inserted in database.
Date Columns are nullable clomn in target.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers