I am looking for the simplest way to push a new row to a database by inserting one record and then retrieving the Primary Key generated by inserting that row.
I know there are several ways this can be done but I can't seem to get any of them to work yet.
Thank you in advance for any advice you can give me.
Did you try the below method?
Retrieving Identity or Autonumber Values (ADO.NET)
Paul ~~~~ Microsoft MVP (Visual Basic)
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?