 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Gbenga Abimbola Guest
|
Posted: Tue Aug 24, 2004 11:11 pm Post subject: HELP: Unable to Update a table with TSQLDataSet |
|
|
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 |
|
 |
|
|
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
|
|