Hi i'm using a table adapter.insert() method to add new data to my table and i need to get hold of the id of the inserted row. I've read around and seen that the most popular way to do this is with SELECT @@IDENTITY as Value but im not sure where to use this?
my iinsert looks like:
instalTblAdapter.Insert(Convert.ToInt32(numPaysTxt.Text), Convert.ToInt32(numPaysTxt.Text));
can anyone point me in the right direction?
thanks