How do you find current database's transaction level on SQL Server?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
If you are talking about the current transaction nesting level, then you would use
@@TRANCOUNT
.If you are talking about transaction isolation level, use
DBCC USEROPTIONS
and look for an option of isolation level. If it isn't set, it's read committed.just run
DBCC useroptions
and you'll get something like this:Run this:
docs.microsoft.com reference for the constant values.