M
Mr Newbie
HI People,
Thanks to all who helped me earlier on the subject of @@IDentity. However, I
seem to have hit another snagette!
My DataSet contains two tables from the SQL Server. lets say Master and
Details. The way I have it set up is that a relationship exists in the
DataSet between the two to force referential integrety etc.
I am now able to a master record in the master table and add records to the
details table.
When I come to update, the server does return the @@IDentity and the record
in the dataset is updated accorningly.
However, the data in the details table maintains its -1,-2,-3 numers etc.
and this will not update and create in the SQL Server.
Is this the wrong approach, it there a better cleaner approach ?
Thanks to all who helped me earlier on the subject of @@IDentity. However, I
seem to have hit another snagette!
My DataSet contains two tables from the SQL Server. lets say Master and
Details. The way I have it set up is that a relationship exists in the
DataSet between the two to force referential integrety etc.
I am now able to a master record in the master table and add records to the
details table.
When I come to update, the server does return the @@IDentity and the record
in the dataset is updated accorningly.
However, the data in the details table maintains its -1,-2,-3 numers etc.
and this will not update and create in the SQL Server.
Is this the wrong approach, it there a better cleaner approach ?