You do have to use the data adapter, because the value of the identity
column has no meaning until you have updated the server. You can subscribe
to the data adapter's RowUpdated event, and then SELECT @@IDENTITY.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"Jerry Camel" <rl*****@msn.com> wrote in message
news:OX**************@tk2msftngp13.phx.gbl...
When I add a new row to a table that has an Identity column, how can I
access the value of the identity column for the row that I just added. Do
I
have to re-fill the dataset through the adapter? If I do that, how can I
tell which is the row I just added?
Thanks
Jerry