![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have an Excel 2003 spreadsheet that includes a column of times (e.g. 9:08 AM, 10:15 PM, etc). I want to import that into a SQL Server table. I tried using a transformation with CDATE but the import still blows up trying to import that time field - Is there a way to do this? TIA Wayne |
#3
| |||
| |||
|
|
Because the smalldatetime and the datetime datatypes must also have a date portion we must do something like this Function Main() DTSDestination("MyTime") = "1/1/1900 " & DTSSource("MyTime") Main = DTSTransformStat_OK End Function "Wayne Wengert" <wayneDONTWANTSPAM (AT) wengert (DOT) com> wrote in message news:wayneDONTWANTSPAM (AT) wengert (DOT) com: I have an Excel 2003 spreadsheet that includes a column of times (e.g. 9:08 AM, 10:15 PM, etc). I want to import that into a SQL Server table. I tried using a transformation with CDATE but the import still blows up trying to import that time field - Is there a way to do this? TIA Wayne |
#4
| |||
| |||
|
|
I have an Excel 2003 spreadsheet that includes a column of times (e.g. 9:08 AM, 10:15 PM, etc). I want to import that into a SQL Server table. I tried using a transformation with CDATE but the import still blows up trying to import that time field - Is there a way to do this? TIA Wayne |
![]() |
| Thread Tools | |
| Display Modes | |
| |