Skip to content

Commit

Permalink
@Run_SSD_As_Temporary_Tables reset-fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
robjharrison committed Jul 19, 2024
1 parent 52bed00 commit cde62d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ WHERE EXISTS
SELECT 1
FROM ssd_development.ssd_person p
WHERE CAST(p.pers_person_id AS INT) = fls.DIM_PERSON_ID -- #DtoI-1799
AND fls.END_DTTM >= DATEADD(YEAR, -@ssd_timeframe_years, GETDATE()) OR NULL -- #DtoI-1806
);

IF @Run_SSD_As_Temporary_Tables = 0
Expand Down Expand Up @@ -4556,6 +4557,7 @@ WHERE
SELECT 1
FROM ssd_development.ssd_person sp
WHERE sp.pers_person_id = cs.dim_person_id
AND (sp.end_date IS NULL OR sp.end_date > GETDATE()) -- #DtoI-1806
);

-- Example entry 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ GO
DECLARE @sql NVARCHAR(MAX) = N'';

DECLARE @Run_SSD_As_Temporary_Tables BIT;
SET @Run_SSD_As_Temporary_Tables = 0; -- 1==Single use SSD extract uses tempdb..# | 0==Persistent SSD table set up
SET @Run_SSD_As_Temporary_Tables = 1; -- 1==Single use SSD extract uses tempdb..# | 0==Persistent SSD table set up



Expand Down

0 comments on commit cde62d8

Please sign in to comment.