J
John Shaw
I am trying to copy the data from one database table to
another server with the same table by writing a simple
program. For some reason the update does not occur. Can
anyone explain?
sqlDataAdapter1.Fill(dataSet11,"ATable");
sqlDataAdapter2.Fill(dataSet21,"ATable");
dataSet11.Merge(dataSet21,false);
dataSet11.AcceptChanges();
int y = sqlDataAdapter1.Update(dataSet11,"ATable");
y returns = 0
No rows are updated. Is there some other step I need to
add to make the update recognize the rows have changed
and to make the update? The merge seems to work when I
view the datasets -21 and 11 in QuickWatch they appear
to be the same with the same # of rows and data. The
Update command was generated by the DataAdapter
Configuration Wizard.
another server with the same table by writing a simple
program. For some reason the update does not occur. Can
anyone explain?
sqlDataAdapter1.Fill(dataSet11,"ATable");
sqlDataAdapter2.Fill(dataSet21,"ATable");
dataSet11.Merge(dataSet21,false);
dataSet11.AcceptChanges();
int y = sqlDataAdapter1.Update(dataSet11,"ATable");
y returns = 0
No rows are updated. Is there some other step I need to
add to make the update recognize the rows have changed
and to make the update? The merge seems to work when I
view the datasets -21 and 11 in QuickWatch they appear
to be the same with the same # of rows and data. The
Update command was generated by the DataAdapter
Configuration Wizard.