You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dbt/include/sqlserver/macros/materializations/models/table/create_table_as.sql
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -19,19 +19,13 @@
19
19
');
20
20
21
21
-- drop current version of the table
22
-
{{- sqlserver__drop_relation_script(relation) -}}
22
+
{{- sqlserver__drop_relation_script(relation) }}
23
23
24
24
-- select into the table and create it that way
25
-
{#- see https://learn.microsoft.com/en-us/sql/t-sql/queries/select-into-clause-transact-sql?view=sql-server-ver16#b-inserting-rows-using-minimal-logging #}
26
-
ALTERDATABASE [{{ relation.database }}] SET RECOVERY BULK_LOGGED
27
-
28
25
SELECT*
29
-
INTO {% if temporary %}#{% endif %}{{ relation.include(database=(not temporary), schema=(not temporary)) }}
26
+
INTO {{ relation.include(database=False) }}
30
27
FROM {{ tmp_relation }}
31
28
32
-
{#- see https://learn.microsoft.com/en-us/sql/t-sql/queries/select-into-clause-transact-sql?view=sql-server-ver16#b-inserting-rows-using-minimal-logging #}
33
-
ALTERDATABASE [{{ relation.database }}] SET RECOVERY FULL
0 commit comments