Ajay Patel

Ajay Patel

  • NA
  • 147
  • 255.2k

Get primary key in SQLTransaction before commit it

Apr 12 2014 8:15 AM
Hello, 
 I am doing Insert using SqlTransaction but I need to get primary key of last Inserted table to use it in next statement. I don't want to commit the transaction before complete insert in second table. so how to get primary key in SQLTransaction before commit it
 
Thanks 

Answers (2)