Getting ID

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H

Im working with OleDB and Access db. I was wondering it it was possible to retrieve a ID, with some OleDB object, from an insert sql statement

regards
Palli
 
The INSERT statement does not return anything except a number of rows
affected. To fetch the new ID, you'll have to execute another SELECT to
fetch @@IDENTITY (and your OleDB object.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
MVP, hRD
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

Páll said:
Hi

Im working with OleDB and Access db. I was wondering it it was possible
to retrieve a ID, with some OleDB object, from an insert sql statement .
 

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

Back
Top