Skip to content

Commit 9d0f20c

Browse files
authored
Merge pull request #204 from Elliot2718/fix-deadlocks
Add nolock
2 parents 8a8318a + eb3e265 commit 9d0f20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
else table_type
154154
end as table_type
155155

156-
from [{{ schema_relation.database }}].INFORMATION_SCHEMA.TABLES
156+
from [{{ schema_relation.database }}].INFORMATION_SCHEMA.TABLES with (nolock)
157157
where table_schema like '{{ schema_relation.schema }}'
158158
{% endcall %}
159159
{{ return(load_result('list_relations_without_caching').table) }}

0 commit comments

Comments
 (0)