D
Derek Chong
Hi all,
When I call the dataadapter.Update(datatable) function, the Id column of the
datatable does not get updated with the value generated by Identity colum on
the related database table for new rows.
Is this by design? If so, is there an 'easy' way to update the new row Id
values?
Setting AutoIncrementStep = -1 resolves any conflict with existing Ids but I
still don't get the new Id.
I know you can use Select @@ Identity to manually update the Id but this
doesn't work when the datatable contains multiple new rows unless you loop
through each new row and update one at a time :-(
Seems like something the dataadapter should handle?
Derek
When I call the dataadapter.Update(datatable) function, the Id column of the
datatable does not get updated with the value generated by Identity colum on
the related database table for new rows.
Is this by design? If so, is there an 'easy' way to update the new row Id
values?
Setting AutoIncrementStep = -1 resolves any conflict with existing Ids but I
still don't get the new Id.
I know you can use Select @@ Identity to manually update the Id but this
doesn't work when the datatable contains multiple new rows unless you loop
through each new row and update one at a time :-(
Seems like something the dataadapter should handle?
Derek