autonumber with oracle

R

reynard

I've an MS Access database that I use as GUI and an Oracle database for the
data.
In Oracle I've tables with autonumber (created with a sequence and a
trigger)
How can I get back the autonumber when I do an insert with a ADODB
recordset?

I tought quering the sequence but since it's not a linked table, I've no
access to it....

Michel
 
A

Anne Nolan

One way is to run a Pass-Through query to retrieve the current value of your
sequence (assuming nobody else has used the sequence in the meantime):

SELECT MY_SEQUENCE.CurrVal from DUAL;

Hope this helps,

Anne Nolan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top