🚀 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 Anne Faveur Mon, 27 Sep 1999 00:00
Sybase SQL anywhere - autoincrement field
#1542
Author: Anne Faveur
Date: Mon, 27 Sep 1999 00:00
17 lines
1312 bytes
I have a sybase SQL anywhere database, with lots of table defined with
an autoincrement field. When I connect to this database from BC++B4, the
autoincrement primary key is not recognized either as a primary key nor
as an autoincrement field.

With a navigator I am not allowed to refresh the data ("table does not
support this operation because it is not uniquely indexed"). However I
do have a unique index on my primary key (the SQL explorer does not see
it either while Sybase SQL Central can see it ). And I can only insert
rows by providing the primary key value by hand.

Certainly I did not understand something. Could anyone give me some
hints, or direct me to some help or documentation I could read.

Thank you in advance for any help.

Anne Faveur (a.faveur@erd.advantest.de)
Re: Sybase SQL anywhere - autoincrement field
#1543
Author: Ingo Oellers
Date: Mon, 27 Sep 1999 00:00
32 lines
1750 bytes
Anne Faveur schrieb:
> 
> I have a sybase SQL anywhere database, with lots of table defined with
> an autoincrement field. When I connect to this database from BC++B4, the
> autoincrement primary key is not recognized either as a primary key nor
> as an autoincrement field.
> 
> With a navigator I am not allowed to refresh the data ("table does not
> support this operation because it is not uniquely indexed"). However I
> do have a unique index on my primary key (the SQL explorer does not see
> it either while Sybase SQL Central can see it ). And I can only insert
> rows by providing the primary key value by hand.
> 
> Certainly I did not understand something. Could anyone give me some
> hints, or direct me to some help or documentation I could read.
> 
> Thank you in advance for any help.
> 
> Anne Faveur (a.faveur@erd.advantest.de)

Hi,

set the Property "Read Only" in the fielddesigner for the
autoincrement-field on TRUE
Then the CPP-Builder post only the other fields to the database and
the autoincrement key will be computed by the ASA


Best regards

Ingo Oellers
ingo@oellers.de
Re: Sybase SQL anywhere - autoincrement field
#1544
Author: Anne Faveur
Date: Tue, 28 Sep 1999 00:00
17 lines
1111 bytes
Ingo Oellers wrote:

>
> set the Property "Read Only" in the fielddesigner for the
> autoincrement-field on TRUE
> Then the CPP-Builder post only the other fields to the database and
> the autoincrement key will be computed by the ASA

Hello,

First thank you for your answer. It works well.
Do you also know why BC++B does not recognize my primary keys and throws an
exception when I try to refresh. Should I redeclare all my primary keys within
BC++B?

Best Regards
Anne Faveur
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