BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Data type is not supported

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Kevin
Guest





PostPosted: Tue Jul 27, 2004 5:25 pm    Post subject: Data type is not supported Reply with quote



I have been running the posted query on a Windows 2000 Citrix server
for a few years. Recently the server was upgraded to a Windows 2003
server and the query is now throwing a "Data type is not supported"
exception. Here is what I know:

- the database is Oracle 8.1.7
- the connection is ADO (2.7 on Windows 2000, 2.8 on Windows 2003)
- the query only fails if the client app is run directly on the 2003
server. Windows 2000 server still works fine.
- the query DOES NOT fail if run in a COM server on the same 2003 server
- the query DOES NOT fail if the ReadOnly property of the TADOQuery is
set to True.
- if I set the connection to MSDASQL using the Oracle ODBC driver, the
query does not fail.
- when I trace the SQL being sent from the app to the database, I
noticed additional SQL appended to the end if the columns list. The
additional SQL is "ba.ROWID, v.ROWID, l.ROWID, epc.ROWID, codes.ROWID,
vo.ROWID, cc.ROWID ". If I add a -- directly after cc.description, the
exception is not thrown.


Does anyone have any suggestions, tips or know of any fixes?


Thanks,
Kevin


select ba.legal_name
,v.invc_num, v.invc_date
,l.cc_num, l.LI_AMT, l.major_acct, l.minor_Acct
,epc.account, epc.description
,codes.code_desc
,ba.id as "BA_ID"
,vo.voucher_num
,cc.description
from business_associates@fin ba
,invoices@fin v
,line_items@fin l
,ep_accounts epc
,codes@fin codes
,vouchers@fin vo
,ep_Base_cc cc
where v.client_id = ba.id
and l.VOUCHER_ID = v.voucher_id
and epc.major_acct = l.major_Acct
and codes.code = epc.class_code
and vo.voucher_id = v.voucher_id
and cc.cost_center_id = l.cc_num


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.