Monday, February 20, 2012

Null Error

Data Source: Oracle 10g R2
Data DestinationTongue TiedQL Server 2000

The date data in Oracle is stored as Number. i.e. yyyymmdd
So I am moving the date data from Number(8,0) to datetime field. I using script component to convert the data to mm/dd/yyyy.
When there is no data at the source I do not want to populate the destination datetime column. I want to keep it as Null.
So ....
My script looks like this....

if SourceData.Length = 8 then
Populate the destination data
end if
I am getting error when I hit the row which does not have date data.
How to solve the above problem.
Thank you,
Smith

Instead of setting a value, you can set MyColumn_IsNull property to True.
|||

Thank you, Jay.

Smith

No comments:

Post a Comment