If I set the jdbc isolation level to read uncommitted in SQL Server, will SQL Server ever lock any tables, pages, rows etc?
Thanks.
lockingsql server
If I set the jdbc isolation level to read uncommitted in SQL Server, will SQL Server ever lock any tables, pages, rows etc?
Thanks.
Best Answer
Read uncommitted from Books Online:
So no it doesn't lock tables, rows or pages. However, any
SELECT
(even withREAD UNCOMMITTED
set) will issue aSch-S
(schema stability) lock, which basically means no schema changes can happen while theSELECT
is executing (schema changes = add/drop column, change datatype of a column, change nullability of a column and a couple other operations I can't think of off the top of my head). ASch-S
lock should not interfere with DML statements (SELECT
/INSERT
/UPDATE
/DELETE
).