Article View: borland.public.cppbuilder.database.ado
Article #1079ResultSet supported or not ?!
From: Diego Scaravaggi
Date: Wed, 17 Nov 2004 09:10
Date: Wed, 17 Nov 2004 09:10
57 lines
2991 bytes
2991 bytes
Hallo,
I'm using c++ builder with ADODB vcl unit from Borland
I got "unspecified error" running this query:
sql = " {call ReadMeasureData( 57223, 67, 279, {resultset 0,
result_set_arg})} "
note that VBA excel code referencing ADO 2.7 com objects works well:
------------- Excel VBA code -------------------
sql = " {call ReadMeasureData( 57223, 67, 279, {resultset 0,
result_set_arg})} "
'm_Connection.Properties("PLSQLRSet") = True 'only for oracle oledb not
required by msdaora
runSQL = sql
m_rsBrand.CursorLocation = adUseServer 'adUseClient ' adUseServer
m_rsBrand.Open runSQL, m_Connection, adOpenForwardOnly, adLockReadOnly,
adCmdText
---------------------------------------------------
After in my C++ builder application I start debug session with VCL debug,
I got Com exception in:
---------- VCL Unit ADODB ---------------------
Recordset.Open(Source, ActiveConnection,
CursorTypeValues[FCursorType], LockTypeValues[FLockType],
Integer(CommandTypeValues[CommandType]) +
ExecuteOptionsToOrd(ExecuteOptions));
-----------------------------------------------
with evaluate/inspect I got:
FCursorType = adOpenForwardOnly
FLockType = adLockReadOnly
CommandType = adCmdText
ExecuteOptions = '\0' // empty
Recordset cannot be depth inspected because is COM intf
How can I discover which COM typelib is binded to this intf ?
Is it possible that ADODB unit is referencing some old ADO GUUID (2.0, 2.1,
2.5, 2.5 sp1) instead of 2.7
I know that ResultSet with MSDAORA works well only from 2.5
Should I avoid original VCL adodb unit for some thirty part Delphi ADO
wrapper ?
Thanx a lot
--
Scaravaggi Diego T X T e - s o l u t i o n s
work: +390225771249 mobile: +393485266985
work address: office 305 via Frigia, 27 20126 Milano (MI) Italy
Milano - Barcelona - Frankfurt - London - Paris
Technical Details
Message-ID:
<419b1586$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,4942e8f095df3307,start X-Google-Thread: f5cad,4942e8f095df3307,start X-Google-Attributes: gid10698b,gidf5cad,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Diego Scaravaggi" <Diego.Scaravaggi@txtgroup.com> From: "Diego Scaravaggi" <Diego.Scaravaggi@txt.it> Newsgroups: borland.public.cppbuilder.database.ado,borland.public.delphi.database.ado Subject: ResultSet supported or not ?! Date: Wed, 17 Nov 2004 10:10:30 +0100 Lines: 59 Organization: TXT e-Solutions spa X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 213.215.153.30 Message-ID: <419b1586$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100682630 213.215.153.30 (17 Nov 2004 01:10:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail