J
John Sitka
Page 428 and the other near pages.
What is really going on when a parameter.SourceVersion is set to
DataRowVersion.Original
and why are they needed across the whole range of colums for the update
procedure.
If a row has a primary key why all the extra checks in a where clause, what
is gained?
Same with the Delete
ie
DELETE FROM [Order Details]
WHERE OrderID = @OrderID AND ProductID = @ProductID AND Quantity = @Quantity
AND UnitPrice = @UnitPrice
I see this almost univerally now and I don't understand it.
how can the below be any different
DELETE FROM [Order Details]
WHERE OrderID = @OrderID
What is really going on when a parameter.SourceVersion is set to
DataRowVersion.Original
and why are they needed across the whole range of colums for the update
procedure.
If a row has a primary key why all the extra checks in a where clause, what
is gained?
Same with the Delete
ie
DELETE FROM [Order Details]
WHERE OrderID = @OrderID AND ProductID = @ProductID AND Quantity = @Quantity
AND UnitPrice = @UnitPrice
I see this almost univerally now and I don't understand it.
how can the below be any different
DELETE FROM [Order Details]
WHERE OrderID = @OrderID