![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- Hi, I want to Compare the Date time by the following VB Script code: ---------------------------------------------------------- - Function Main() if (DTSSource("Time").Value < "8/8/1754") then DTSDestination("Time") = "2/2/2079" else DTSDestination("Time") = DTSSource("Time") end if Main = DTSTransformStat_OK End Function ---------------------------------------------------------- - This works fine, but if I change "8/8/1754" to "10/10/1754", or change "2/2/2079" to "8/8/2079"it gives me an error: ---------------------------------------------------------- - "Insert error, ('Time',DBTYPE_DBTIMESTAMP), status 6: Data overflow. Invalid character value for cast specification" ---------------------------------------------------------- - I am really confused, can anyone help me. Henry . |
![]() |
| Thread Tools | |
| Display Modes | |
| |