Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How fo I return the primary key value after INSERT using dbExpress?

Status
Not open for further replies.

mercenguk

Programmer
Dec 1, 2006
8
GB
Hi all.

I have an application written in Delphi 7 which accesses an Interbase 2007 database using dbExpress.

I have created a master / detail relationship between 2 tables using a nested dataset.

There is a 'Before Insert' trigger / generator on the master table which generates a unique id for newly inserted records.

This unique id is then used as a link to the detail table.

Is there an efficient way to return the newly generated unique value?

Many thanks in advance.

Regards,

MercEng
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top