Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Time and Data Transformation Scripts

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-02-01 : 08:41:54
Lynne writes "Sorry for the idiot question but books online is not helping.

I usually only deal with putting date data in a datetime field and use CDate to do this. CDate(YYYY + '/' + MM + '/' + DD)

I now have to put time data in a datetime field. I have tried
CDate as in CDate(HH + ':' + SS) and
TimeValue as in TimeValue(HH+ ':' + SS)

As in the heading I am doing this in a data transformation script and the data is going from an Informix Text field to the SQL datetime field. SQL Version 7.00.699

Any clue would be appreciated.

Lynne Ritchie"
   

- Advertisement -