G
Guest
Hi,
I'm wondering if it's possible to regenerate the increment id's in an
AutoIncrement Column?
My situation is this...I have a client application that is recieving a
several DataTables from a service. The DataTables contain an auto increment
column which is guaranteed to be unique within that table but I need to merge
the tables together to create a new table and still have a unique column.
Orignally I was taking the first table as a base and then adding new rows to
this for the other tables using LoadDataRow since the structure will always
be the same.
Since the format of each table is the same I'm using
LoadDataRow(myRowToAdd). I have tried creating a new AutoIncrementColumn and
LoadingDataRow but this doesn't work, I end up with NULLS in the new Column
and of course non unique values in the existing.
So I guess my question is what is the best way to create this new
autoincrement column? I'm hoping I don't have to loop through the datatables
that come in because I will be recieving updates to all this data and think
this could be quite slow.
Any help appreciated.
Thanks
I'm wondering if it's possible to regenerate the increment id's in an
AutoIncrement Column?
My situation is this...I have a client application that is recieving a
several DataTables from a service. The DataTables contain an auto increment
column which is guaranteed to be unique within that table but I need to merge
the tables together to create a new table and still have a unique column.
Orignally I was taking the first table as a base and then adding new rows to
this for the other tables using LoadDataRow since the structure will always
be the same.
Since the format of each table is the same I'm using
LoadDataRow(myRowToAdd). I have tried creating a new AutoIncrementColumn and
LoadingDataRow but this doesn't work, I end up with NULLS in the new Column
and of course non unique values in the existing.
So I guess my question is what is the best way to create this new
autoincrement column? I'm hoping I don't have to loop through the datatables
that come in because I will be recieving updates to all this data and think
this could be quite slow.
Any help appreciated.
Thanks