Quote:
Originally posted by Jonathana
Hi
Can any one help.
I have linked an Informix 7.31 database thru to Sql Server (Linked server - Ole ODBC). This works fine apart from when I try and select a date field from a Informix table thu the Sql Server query analyser. I get the following error
Server: Msg 8114, Level 16, State 8, Line 1
Error converting data type DBTYPE_DBTIMESTAMP to datetime.
I have tried using the cast function in Sql Server but this did not help. I need to try and format the date to someting that Sql Server understands before it hits Sql Server.
I have quite a large database +- 10000 tables, so I would like to get a generic solution, rather than changing each field as required
|
Hi,
OK, test the syntax SQL the function "extend()", for example:
colum_datetime="2003-11-05 09:20:33"
select extend(colum_datetime, year to day) from table ....
Result colum_datetime="2003-11-05"
Gustavo.