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 

HELP: Unable to Update a table with TSQLDataSet

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Gbenga Abimbola
Guest





PostPosted: Tue Aug 24, 2004 11:11 pm    Post subject: HELP: Unable to Update a table with TSQLDataSet Reply with quote



Hi:

I'm re-posting this problem again. Has anyone done anything similar to the following code:

With dsUpdateInc do
begin
SQLConnection := DataConn;
Active := False;
CommandType := ctQuery;
CommandText :=
'UPDATE user_1.tablename '
+ 'set appl_id = :pappl_id, '
+ ' license_no = :plicNo '
+ ' where Id_number = :pIDNo';

ParamByName('pappl_id').AsString
:= txtAppl_ID.Text;
ParamByName('plicNo').AsFMTBcd
:= IntegerToBcd(licNo);
ParamByName('pIDNo').AsFMTBcd
:= IntegerToBcd(IdNo);
ExecSQL;
end;


I used TSQLDatasets to update tables in the database (Oracle)
that the application is using. Is there any parameter to
set to cause the data being updated to commit? Any other
approach (with code sample) provided will be greatly appreciated.
I'm begining to feel nolstagic about BDE!



Thanks.

Gbenga

Gbenga

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.