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 

Parmeters in TADOQuery BUG

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





PostPosted: Wed Jan 14, 2004 3:04 am    Post subject: Parmeters in TADOQuery BUG Reply with quote



It seems if I have a nested query such as

SELECT
...
FROM
...
INNER JOIN...
WHERE
ID IN (
SELECT ..
FROM AnotherDatabase.dbo.Table
WHERE
AnotherID= :pID
)
...

The pID never gets popultaed when I add a value to
parameters.parambyname('pID').Value. I ran a debug on the TStrings of the
SQL and :pCID never recieves the value it is always the value 'pID'. I have
made sure that the parameters for the TADOQuery are proper and at design
time I can open the query. Has anyone seen this.. Does it have something to
do with running against 2 DB's????

Thanks,
Ross B.


Back to top
Bill Todd (TeamB)
Guest





PostPosted: Wed Jan 14, 2004 1:00 pm    Post subject: Re: Parmeters in TADOQuery BUG Reply with quote



Parameters are not replaced by the VCL components. The query and the
parameter values are sent to the database server separately. Note that
it is usually impossible to provide good answers to database questions
when you do not tell us what database you are using. You might also
have better luck with this question in the ADO newsgroup.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) 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.