Skip to content

Commit c1b9956

Browse files
authored
Add nolock
Adds with (nolock) to list_relations_without_caching macro
1 parent 3d202ea commit c1b9956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbt/include/sqlserver/macros/adapters/metadata.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
else table_type
8484
end as table_type
8585

86-
from [{{ schema_relation.database }}].information_schema.tables
86+
from [{{ schema_relation.database }}].information_schema.tables with (nolock)
8787
where table_schema like '{{ schema_relation.schema }}'
8888
{% endcall %}
8989
{{ return(load_result('list_relations_without_caching').table) }}
90-
{% endmacro %}
90+
{% endmacro %}

0 commit comments

Comments
 (0)