admin管理员组

文章数量:1296889

What happens when you query tables from different databases in the same query and the databases have different isolation levels. Let's say one is read committed and the other is snapshot isolation.

What happens when you query tables from different databases in the same query and the databases have different isolation levels. Let's say one is read committed and the other is snapshot isolation.

Share Improve this question edited Feb 11 at 22:21 Dale K 27.4k15 gold badges58 silver badges83 bronze badges asked Feb 11 at 22:17 owneyjsowneyjs 652 silver badges9 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 4

Databases don't have isolation levels. That's a property of a session.

There's a database setting called READ COMMITTED SNAPSHOT ISOLATION (RCSI) which changes the behavior of the READ COMMITTED isolation level. When you query objects in multiple databases while your session is in READ COMMITTED isolation level, each table will be read according to the RCSI setting of its database.

本文标签: sql serverCross Database Query Isolation LevelsStack Overflow