Assuming, we are using MSSQL and working on read commited isolation level (so, the associated phenomena are acceptable) do I need a transaction when performing several consecutive select queries? Is there any difference between performng several consecutive select queries in a single transaction and performing them in separate transactions?
Assuming, we are using MSSQL and working on read commited isolation level (so, the
Share
No there is no difference whatsoever. Under default
read committedisolation levelSlocks are released as soon as data is read.It doesn’t wait until the end of the statement even let alone the end of the transaction.