Oracle parameter problem with OraOLEDB driver
From: Mick Board (mick_board_at_yahoo.com)
Date: 03/26/04
- Next message: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Previous message: Jan Didden: "Microsoft Jet 4.0 OLD DB Provider"
- Next in thread: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Reply: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Reply: Michael Jacobs: "Re: Oracle parameter problem with OraOLEDB driver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Mar 2004 23:27:49 +1100
Hi,
I'm in the process of converting a Delphi application from BDE to ADO for
both Oracle and SQL Server. At this stage I'm only working on the
conversion for Oracle. I've run into a problem with using the OraOLEDB
driver and parameter queries. I am using this driver rather than the
Microsoft driver because of it's support for CLOBs.
I have a query which contains parameters, one of which is an integer. My
query has its datasource value set to a datasource as it is the detail part
of a master detail relationship. The integer parameter that I'm having
problems with should be joined to a field of the same name (part of the
select statement) in the master query (returning only records which match).
However, I'm receiving an obscure Oracle error message: "Project xyz raised
exception class EOleException with message 'Unspecified error'. Process
stopped. Use Step or Run to continue".
What I'm trying to do works fine in BDE. It also works fine (from what I
can tell) with Microsoft's version of the drivers. From what I can tell
this technique also seems to work ok with text data using this driver.
The underlying data is a Number(38) field. I am trying to use an ftInteger
datatype, but have also tried the ftfloat and ftLargeint.
I've tried some tests with a simple parameter query (without a datasource
but integer parameters) and this also seems to cause problems, yet from help
from the newsgroups I could get around this one problem by specifying the
parameter's type in code prior to opening the query. However, this trick
doesn't seem to work where my query has a datasource.
I am really struggling with this and would appreciate any help (someone
somewhere must have experienced this before ... I hope).
Thanks in advance,
Mick.
-- ------------------------------------------------------ InterNet Australis http://www.australis.com.au/
- Next message: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Previous message: Jan Didden: "Microsoft Jet 4.0 OLD DB Provider"
- Next in thread: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Reply: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Reply: Michael Jacobs: "Re: Oracle parameter problem with OraOLEDB driver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|