When you inserting data using SqlCommandBuilder...

  • Thread starter Thread starter Rico Alexander
  • Start date Start date
R

Rico Alexander

is there a way to retrieve the value of an autoincrement column inserted in
the database?
 
Select @@Identity right after the insert. You will get the autoincrement
value.
 

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