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 2
2
select
3
3
GRANTEE as grantee,
4
4
PRIVILEGE_TYPE as privilege_type
5
- from INFORMATION_SCHEMA .TABLE_PRIVILEGES
5
+ from INFORMATION_SCHEMA .TABLE_PRIVILEGES with (nolock)
6
6
where TABLE_CATALOG = ' {{ relation.database }}'
7
7
and TABLE_SCHEMA = ' {{ relation.schema }}'
8
8
and TABLE_NAME = ' {{ relation.identifier }}'
Original file line number Diff line number Diff line change 9
9
c .max_length as character_maximum_length,
10
10
c .precision as numeric_precision,
11
11
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)
14
14
on c .user_type_id = t .user_type_id
15
15
where c .object_id = object_id(' {{ ' tempdb..' ~ relation.include(database=false, schema=false) if ' # ' in relation.identifier else relation }}')
16
16
)
Original file line number Diff line number Diff line change 92
92
column_name,
93
93
ordinal_position as column_index,
94
94
data_type as column_type
95
- from INFORMATION_SCHEMA .COLUMNS
95
+ from INFORMATION_SCHEMA .COLUMNS with (nolock)
96
96
97
97
)
98
98
129
129
{% call statement(' list_schemas' , fetch_result= True, auto_begin= False) - %}
130
130
USE {{ database }};
131
131
select name as [schema]
132
- from sys .schemas
132
+ from sys .schemas with (nolock)
133
133
{% endcall %}
134
134
{{ return(load_result(' list_schemas' ).table) }}
135
135
{% endmacro %}
You can’t perform that action at this time.
0 commit comments