J
John M. Collinson
I am trying to do something that I would expect to be very easy but I am not
having much luck finding the solution.
I have a DataSet containing one data table of potentially 10000's of rows of
data. Using ADO.NET I need to programmatically perform the equivalent of
the following SQL Statement:
UPDATE DataTable1 SET Field1 = 987 WHERE Field2 = 'XYZ';
Is there a way of performing this function directly against the DataSet or
DataTable without iterating through all of the Rows and examining the value
of each field?
Please note that I must perform the updates against the DataTable and not
the original data source.
Any help would be appreciated.
Thanks
John
having much luck finding the solution.
I have a DataSet containing one data table of potentially 10000's of rows of
data. Using ADO.NET I need to programmatically perform the equivalent of
the following SQL Statement:
UPDATE DataTable1 SET Field1 = 987 WHERE Field2 = 'XYZ';
Is there a way of performing this function directly against the DataSet or
DataTable without iterating through all of the Rows and examining the value
of each field?
Please note that I must perform the updates against the DataTable and not
the original data source.
Any help would be appreciated.
Thanks
John