File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
dbt/include/sqlserver/macros/adapters Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22 select
33 GRANTEE as grantee,
44 PRIVILEGE_TYPE as privilege_type
5- from INFORMATION_SCHEMA .TABLE_PRIVILEGES
5+ from INFORMATION_SCHEMA .TABLE_PRIVILEGES with (nolock)
66 where TABLE_CATALOG = ' {{ relation.database }}'
77 and TABLE_SCHEMA = ' {{ relation.schema }}'
88 and TABLE_NAME = ' {{ relation.identifier }}'
Original file line number Diff line number Diff line change 99 c .max_length as character_maximum_length,
1010 c .precision as numeric_precision,
1111 c .scale as numeric_scale
12- from [{{ ' tempdb' if ' #' in relation .identifier else relation .database }}].sys .columns c
13- inner join sys .types t
12+ from [{{ ' tempdb' if ' #' in relation .identifier else relation .database }}].sys .columns c with (nolock)
13+ inner join sys .types t with (nolock)
1414 on c .user_type_id = t .user_type_id
1515 where c .object_id = object_id(' {{ ' tempdb..' ~ relation.include(database=false, schema=false) if ' # ' in relation.identifier else relation }}')
1616 )
Original file line number Diff line number Diff line change 9292 column_name,
9393 ordinal_position as column_index,
9494 data_type as column_type
95- from INFORMATION_SCHEMA .COLUMNS
95+ from INFORMATION_SCHEMA .COLUMNS with (nolock)
9696
9797 )
9898
129129 {% call statement(' list_schemas' , fetch_result= True, auto_begin= False) - %}
130130 USE {{ database }};
131131 select name as [schema]
132- from sys .schemas
132+ from sys .schemas with (nolock)
133133 {% endcall %}
134134 {{ return(load_result(' list_schemas' ).table) }}
135135{% endmacro %}
You can’t perform that action at this time.
0 commit comments