-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Get Specific Environment Reference ID (#56)
The environment reference ID was not filtering on the folder name, leading to situations where multiple rows might be returned. When this occurs the result was non-deterministic and the SSIS job step would not be configured correctly.
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
SELECT reference_id AS environment_reference_id | ||
FROM catalog.environment_references | ||
SELECT reference_id AS environment_reference_id | ||
FROM SSISDB.catalog.environment_references | ||
INNER | ||
JOIN catalog.projects | ||
JOIN SSISDB.catalog.projects | ||
ON projects.project_id = environment_references.project_id | ||
INNER | ||
JOIN SSISDB.catalog.folders | ||
ON folders.folder_id = projects.folder_id | ||
WHERE environment_references.environment_name = $environment_name | ||
AND projects.name = $project_name | ||
AND folders.name = $folder_name | ||
; |