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 

Parameters

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Craig Stuntz [TeamB]
Guest





PostPosted: Wed Nov 26, 2003 2:03 pm    Post subject: Re: Parameters Reply with quote



Oldrich Masek wrote:

Quote:
BUT, I'm getting an error, that the parameter was not found!

The first thing I'd suggest is to try a TSQLDataset, TDatasetProvider,
and TClientDataset instead of TSQLClientDataset. The latter component
is buggy and deprecated.

-Craig

--
Craig Stuntz [TeamB] . Vertex Systems Corp. . Columbus, OH
Delphi/InterBase Weblog : http://delphi.weblogs.com
InterBase PLANalyzer 1.1 -- Free InterBase query optimization
tool: http://delphi.weblogs.com/IBPLANalyzer

Back to top
Oldrich Masek
Guest





PostPosted: Wed Nov 26, 2003 2:04 pm    Post subject: Parameters Reply with quote



Hi to all,

I would like to do something like this:

SQLClientDataSet1->CommandType = ctQuery;
SQLClientDataSet1->CommandText = "Select * from Accounts where
AccountID=:AI";
SQLClientDataSet1->Params->ParamByName("AI")->AsString = "26100";
SQLClientDataSet1->Active = true;

BUT, I'm getting an error, that the parameter was not found!
This worked with the BDE components,
does anybody have an idea where is the problem?

thanks

oldrich


Back to top
Oldrich Masek
Guest





PostPosted: Thu Nov 27, 2003 10:52 am    Post subject: Re: Parameters Reply with quote



Thank you for the advice,
but I can not believe tahat Borland would release something so much broken.
There must be other an explination, maybe I have to introduce the parameter
first, or something.......

anybody?

thnaks
Oldrich


"Craig Stuntz [TeamB]" <cstuntz (AT) nospam (DOT) please [a.k.a. vertexsoftware.com]>
schrieb im Newsbeitrag news:3fc4c0a7$1 (AT) newsgroups (DOT) borland.com...
Quote:
Oldrich Masek wrote:

BUT, I'm getting an error, that the parameter was not found!

The first thing I'd suggest is to try a TSQLDataset, TDatasetProvider,
and TClientDataset instead of TSQLClientDataset. The latter component
is buggy and deprecated.

-Craig

--
Craig Stuntz [TeamB] . Vertex Systems Corp. . Columbus, OH
Delphi/InterBase Weblog : http://delphi.weblogs.com
InterBase PLANalyzer 1.1 -- Free InterBase query optimization
tool: http://delphi.weblogs.com/IBPLANalyzer



Back to top
Bill Todd
Guest





PostPosted: Thu Nov 27, 2003 1:27 pm    Post subject: Re: Parameters Reply with quote

On Thu, 27 Nov 2003 11:52:49 +0100, "Oldrich Masek"
<oldrich.masek (AT) easetec (DOT) de> wrote:

Quote:
I can not believe tahat Borland would release something so much broken.

Believe it. This was something that was introduced very late in the
development cycle and the limitations were not obvious until after the
product shipped. That is the reason that the SQLClientDataSet has been
deprecated and is not included in later versions of Delphi.

As Craig said, change to separate components.

--
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 (dbExpress) 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.