If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Delphi ADO Parameter Query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-21-04, 13:20
acabrera acabrera is offline
Registered User
 
Join Date: Jan 2004
Location: Claremont, CA
Posts: 38
Delphi ADO Parameter Query

I am revising the database engine of our Delphi 5-Oracle 8i applications from BDE to ADO but I encounter the message:

'Parameter object is improperly defined. Inconsistent or incomplete information was provided.'

when I try to add the fields to an ADO Query. The problem SQL statement using a parameter is:

SELECT CO_KEY, DETAIL_DATA1 FROM CONTACT_DETAIL
WHERE CONTACT_KEY IS NULL
AND DETAIL_CD = 'PHONE'
AND CO_KEY = :CO_KEY

This works fine in BDE but not in ADO.
Reply With Quote
  #2 (permalink)  
Old 03-05-04, 02:27
yinsw yinsw is offline
Registered User
 
Join Date: Sep 2003
Location: Penang, Malaysia
Posts: 9
Re: Delphi ADO Parameter Query

Quote:
Originally posted by acabrera
I am revising the database engine of our Delphi 5-Oracle 8i applications from BDE to ADO but I encounter the message:

'Parameter object is improperly defined. Inconsistent or incomplete information was provided.'

when I try to add the fields to an ADO Query. The problem SQL statement using a parameter is:

SELECT CO_KEY, DETAIL_DATA1 FROM CONTACT_DETAIL
WHERE CONTACT_KEY IS NULL
AND DETAIL_CD = 'PHONE'
AND CO_KEY = :CO_KEY

This works fine in BDE but not in ADO.
I believed this error occur when the paramater :co_key has a null value...
Reply With Quote
  #3 (permalink)  
Old 03-05-04, 10:52
acabrera acabrera is offline
Registered User
 
Join Date: Jan 2004
Location: Claremont, CA
Posts: 38
You are right. What I did was remove the parameter clause, add the fields and then add the parameter clause. Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On