samanw
June 2nd, 2005, 01:27 PM
Hi All,
I need to transfer data from another database (IBM AS/400) into SQL Server, but I have a problem converting Date column from Numeric Data type into Date Data type,
Here is an activex I was trying to perform this task. But it gives me an error
(All dates are in MMDDYY format eventough the source column is Numeric data type)
Please help me.....
Sam
-----------------------------------------------------------------------------------------------
'**********************************************************************
' Visual Basic Transformation Script
'************************************************************************
' Copy each source column to the destination column
Function Main()
strDate = DTSSource("REMDAT")
DTSDestination("REMDAT") = CDate(FormatDateTime(strDate, "MMDDYY"))
Main = DTSTransformStat_OK
End Function
I need to transfer data from another database (IBM AS/400) into SQL Server, but I have a problem converting Date column from Numeric Data type into Date Data type,
Here is an activex I was trying to perform this task. But it gives me an error
(All dates are in MMDDYY format eventough the source column is Numeric data type)
Please help me.....
Sam
-----------------------------------------------------------------------------------------------
'**********************************************************************
' Visual Basic Transformation Script
'************************************************************************
' Copy each source column to the destination column
Function Main()
strDate = DTSSource("REMDAT")
DTSDestination("REMDAT") = CDate(FormatDateTime(strDate, "MMDDYY"))
Main = DTSTransformStat_OK
End Function