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 

UpdateMode in DataSetProvider

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Jürgen Stähr
Guest





PostPosted: Thu Apr 22, 2004 4:06 pm    Post subject: UpdateMode in DataSetProvider Reply with quote



Hi all,
I have a problem with the generated SQL-statements of TDataSetProvider. The
Provider ist connected to a TSQLDataSet and a TClientDataSet is connected to
the Provider as usal.
In the ClientDataSet I have 2 fields marked as key fields (ProviderFlags:
[pfInUpdate,pfInWhere,pfInKey]). The Provider property UpdateMode is set to
upWhereChanged.
But writing back data the update statement generated fromthe Provider do
not include the key fields in the where clause.

Is that an error in TDataSetProvider or have I to set other propertys??

Please Help

Thanks
Juergen Staehr


Back to top
Dave Rowntree
Guest





PostPosted: Thu Apr 22, 2004 4:46 pm    Post subject: Re: UpdateMode in DataSetProvider Reply with quote



TDataSetProvider is part of MIDAS(datasna) not dbexpress. Questions on
it would normally go in b.p.datasnap or d.p.d.d.multi-tier, whichever
is most appropriate.

"Jürgen Stähr" <Juergen (AT) StaehrNet (DOT) de> wrote:
Quote:
I have a problem with the generated SQL-statements of TDataSetProvider. The
Provider ist connected to a TSQLDataSet and a TClientDataSet is connected to
the Provider as usal.
In the ClientDataSet I have 2 fields marked as key fields (ProviderFlags:
[pfInUpdate,pfInWhere,pfInKey]).

Setting ProviderFlags against a client CDS has absolutely no affect on
anything. You need to set the DSP.DataSet TField ProviderFlags.

Have a look in the NG archives (e.g.www.google.com) for more info on
using ProviderFlags. Doing a search against my name and
'ProviderFlags' probably returns quite a few entries. See if this
helps http://tinyurl.com/yvfqg

--
Dave Rowntree

Back to top
Jürgen Stähr
Guest





PostPosted: Tue Apr 27, 2004 7:22 pm    Post subject: Re: UpdateMode in DataSetProvider Reply with quote



Thank you verry much Dave, I have now set the ProviderFlags in the
SQLDataSet and every thing is working fine.

Juergen Staehr



"Dave Rowntree" <daver (AT) spam_off (DOT) brookswood.co.uk> schrieb im Newsbeitrag
news:o0tf80h8cafnilq0lag0t13vqlg8l15471 (AT) 4ax (DOT) com...
Quote:
TDataSetProvider is part of MIDAS(datasna) not dbexpress. Questions on
it would normally go in b.p.datasnap or d.p.d.d.multi-tier, whichever
is most appropriate.

"Jürgen Stähr" <Juergen (AT) StaehrNet (DOT) de> wrote:
I have a problem with the generated SQL-statements of TDataSetProvider.
The
Provider ist connected to a TSQLDataSet and a TClientDataSet is connected
to
the Provider as usal.
In the ClientDataSet I have 2 fields marked as key fields (ProviderFlags:
[pfInUpdate,pfInWhere,pfInKey]).

Setting ProviderFlags against a client CDS has absolutely no affect on
anything. You need to set the DSP.DataSet TField ProviderFlags.

Have a look in the NG archives (e.g.www.google.com) for more info on
using ProviderFlags. Doing a search against my name and
'ProviderFlags' probably returns quite a few entries. See if this
helps http://tinyurl.com/yvfqg

--
Dave Rowntree



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.