G
Geoff Jones
Hi
I have a problem with the values of a primary key in a table.
I am deleting all the rows of an existing data table in a database by using
code:
For Each x As DataRow In myDataSet.Tables(0)
x.Delete()
Next
myDataAdaptor.Update(myDataSet.Tables(0))
This works fine, HOWEVER, when I add more rows later on to this table, the
index ID does not start from 1, rather it appears that it is working from
the last value of the set of rows deleted earlier.
I guess there must be some command I'm missing to re-set the ID counter.
Can anybody help?
Thanks in advance
Geoff
I have a problem with the values of a primary key in a table.
I am deleting all the rows of an existing data table in a database by using
code:
For Each x As DataRow In myDataSet.Tables(0)
x.Delete()
Next
myDataAdaptor.Update(myDataSet.Tables(0))
This works fine, HOWEVER, when I add more rows later on to this table, the
index ID does not start from 1, rather it appears that it is working from
the last value of the set of rows deleted earlier.
I guess there must be some command I'm missing to re-set the ID counter.
Can anybody help?
Thanks in advance
Geoff