Skip to content

Commit

Permalink
Merge pull request #381 from dbt-msft/add-nolock-metadata
Browse files Browse the repository at this point in the history
add nolock to catalog call
  • Loading branch information
sdebruyn authored May 16, 2023
2 parents 69b4189 + 967f0b6 commit e7a900a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dbt/include/sqlserver/macros/adapters/metadata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
name as principal_name,
principal_id as principal_id
from
sys.database_principals
sys.database_principals with (nolock)
),

schemas as (
Expand All @@ -18,7 +18,7 @@
schema_id as schema_id,
principal_id as principal_id
from
sys.schemas
sys.schemas with (nolock)
),

tables as (
Expand All @@ -28,7 +28,7 @@
principal_id as principal_id,
'BASE TABLE' as table_type
from
sys.tables
sys.tables with (nolock)
),

tables_with_metadata as (
Expand All @@ -49,7 +49,7 @@
principal_id as principal_id,
'VIEW' as table_type
from
sys.views
sys.views with (nolock)
),

views_with_metadata as (
Expand Down

0 comments on commit e7a900a

Please sign in to comment.