Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Autoinc field in a clientdataset

69 views
Skip to first unread message

Michael Sørensen

unread,
Jan 3, 2010, 6:03:11 PM1/3/10
to
Hi.

I work with Delphi 2007 and Firebird.

In my application I have placed a clientdataset to buffer my data from
the firebird database.

In my Firebird table i have a primary key field "ID" as the type integer.

The field "ID" is invisible in the applications grid. It's only a value
to identify the record and has to be set automaticly.

But when I use the clientdataset I get an exception "Field ID must not
be null".

I have tried to set a generator in Frebird. It works when I not use a
clientdataset but only if i just have a query and an updatesql.

Is there a possible way to set an autoincrement field automaticly when
using clientdataset.

Best egards
Michael
Denmark

0 new messages