🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
3 messages
3 total messages Started by Sydney Delieu Thu, 10 Jun 2004 13:28
MS-SQL 'identity' field value
#209
Author: Sydney Delieu
Date: Thu, 10 Jun 2004 13:28
24 lines
1467 bytes
Hello,

I have a TRemoteDataModule that contains an TADOQuery (q1) and a
TDataSetProvider (dsp1). q1 uses persistent fields, the database is
MS-SQL Server 2000.

q1->SQL->Text = "select * from trans where tra_id = :TransID";

tra_id is an MS-SQL Server 'identity' field (auto-incrementing field).


On the client-side I have a TWebConnection (webConn) and a
TClientDataSet (cds1). If I insert a new record and then perform a:

cds1->ApplyUpdates(-1);

the record does inserts correctly, but the value of tra_id is not sent
back to cds1.

What do I need to do to make the DataSetProvider return the value of
the identity field (AutoInc field) to the ClientDataSet using the above?

Thanks,
Syd.
Re: MS-SQL 'identity' field value
#210
Author: vavan
Date: Thu, 10 Jun 2004 13:57
9 lines
1034 bytes
On 10 Jun 2004 06:28:53 -0700, "Sydney Delieu" <syddel@hotmail.com>
wrote:

>Hello,

you better ask in corresponding delphi group

--
Vladimir Ulchenko aka vavan
Re: MS-SQL 'identity' field value
#211
Author: Sydney Delieu
Date: Fri, 11 Jun 2004 11:11
20 lines
1152 bytes
Hi Vladimir,

I think you're right - this group seems way too quiet.

Regards,
Syd.



vavan wrote:

> On 10 Jun 2004 06:28:53 -0700, "Sydney Delieu" <syddel@hotmail.com>
> wrote:
> 
> > Hello,
> 
> you better ask in corresponding delphi group
> 
> --
> Vladimir Ulchenko aka vavan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads