Hi,
I have created a linked server from my SQL 2000 with Informix. I'm using OPENQUERY statement to retrive the data from linked server's table. But I'm getting an error while I excute the SELECT statmement and I understand the error. Becasue that error happens after the adding of a particular field and ait works well after exclding that particual filed.
The datatype of that field in Informix is 'DateTime Hour to Minute'
Please find below the query which runs without an error:
SELECT * FROM OPENQUERY(LinkedServer,'Select Tr_Date,fld2,fld3 from table)
The query which has error:
SELECT * FROM OPENQUERY(LinkedServer,'Select Tr_Date,Tr_Time,fld2,fld3 from table)
How can I convert an Informix 'DateTime Hour To Minute' filed type to DateTime type.
Hope that someone can help/advise me on this matter.
Thanks & regards,
Ahmed JEwahar
ajewahar@sa.dhl.com
I have created a linked server from my SQL 2000 with Informix. I'm using OPENQUERY statement to retrive the data from linked server's table. But I'm getting an error while I excute the SELECT statmement and I understand the error. Becasue that error happens after the adding of a particular field and ait works well after exclding that particual filed.
The datatype of that field in Informix is 'DateTime Hour to Minute'
Please find below the query which runs without an error:
SELECT * FROM OPENQUERY(LinkedServer,'Select Tr_Date,fld2,fld3 from table)
The query which has error:
SELECT * FROM OPENQUERY(LinkedServer,'Select Tr_Date,Tr_Time,fld2,fld3 from table)
How can I convert an Informix 'DateTime Hour To Minute' filed type to DateTime type.
Hope that someone can help/advise me on this matter.
Thanks & regards,
Ahmed JEwahar
ajewahar@sa.dhl.com