|
![]() |
Name | Value | Expression | Description |
EnterpriseDW |
Configuration setting in SSIS_Configurations that specifies the name of the Enterprise Data Warehouse. |
||
N/A |
If the Enterprise Data Warehouse resides on a different server from the DWStaging and DWoperations databases, a linked server must be defined and the name populated into the Var_EDWLinkedServername. If it resides on the same server, this setting must be set to ?N/A?. This is a configuration setting from SSIS_Configurations. |
||
exec usp_DimStudentObjective_Select 'Jan 1 1900 12:00AM' , 'Mar 4 2016 10:33AM' |
"exec usp_DimStudentObjective_Select '" + @[User::IncrementalBeginDtTm] + "' , '" + @[User::IncrementalEndDtTm] + "'" |
This variable contains the execution string for the Stored Procedure that will retrieve the data from the source system. |
|
Jan 1 1900 12:00AM |
The IncrementalBeginDtTm setting will contain the start date and time for which updates will be extracted. This is a configuration setting from SSIS_Configurations that are set in the Control Package. |
||
Mar 4 2016 10:33AM |
The IncrementalEndDtTm setting will contain the End Date and Time for which updates will be extracted. These values will be compared against the RowUpdatedOn column on the tables in the DWStaging database to determine which rows to extract and load into the Enterprise Data Warehouse. |
||
/* SQL INSERT into DimStudentObjective from New Temp Table */
INSERT INTO [EnterpriseDW].[dbo].[DimStudentObjective]
(
StudentObjectiveAK,
StudentId,
ProgramCode,
Program,
EffectiveTerm,
EffectiveTermTitle,
SequenceNumber,
AdmissionStatus,
AwardTypeCode,
AwardType,
PrimaryObjective,
ProgramStatusCode,
GraduationStatusCode,
ExpectedGraduationTerm,
ExpectedGraduationTermTitle,
ActualGraduationTerm,
ActualGraduationTermTitle,
GraduationAge,
GraduationAgeRange,
GraduationHonorsCode,
TransferMajorCode,
TransferMajor,
TransferInstitutionId,
TransferInstitution,
ReportedTerm,
ReportedTermTitle,
RowIsCurrent,
RowStartDate,
RowEndDate
)
SELECT
StudentObjectiveAK,
StudentId,
ProgramCode,
Program,
EffectiveTerm,
EffectiveTermTitle,
SequenceNumber,
AdmissionStatus,
AwardTypeCode,
AwardType,
PrimaryObjective,
ProgramStatusCode,
GraduationStatusCode,
ExpectedGraduationTerm,
ExpectedGraduationTermTitle,
ActualGraduationTerm,
ActualGraduationTermTitle,
GraduationAge,
GraduationAgeRange,
GraduationHonorsCode,
TransferMajorCode,
TransferMajor,
TransferInstitutionId,
TransferInstitution,
ReportedTerm,
ReportedTermTitle,
RowIsCurrent,
RowStartDate,
RowEndDate
FROM [dbo].[Staged_dbo_DimStudentObjective__New]
|
"
/* SQL INSERT into DimStudentObjective from New Temp Table */
INSERT INTO " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "].[dbo].[DimStudentObjective]
(
StudentObjectiveAK,
StudentId,
ProgramCode,
Program,
EffectiveTerm,
EffectiveTermTitle,
SequenceNumber,
AdmissionStatus,
AwardTypeCode,
AwardType,
PrimaryObjective,
ProgramStatusCode,
GraduationStatusCode,
ExpectedGraduationTerm,
ExpectedGraduationTermTitle,
ActualGraduationTerm,
ActualGraduationTermTitle,
GraduationAge,
GraduationAgeRange,
GraduationHonorsCode,
TransferMajorCode,
TransferMajor,
TransferInstitutionId,
TransferInstitution,
ReportedTerm,
ReportedTermTitle,
RowIsCurrent,
RowStartDate,
RowEndDate
)
SELECT
StudentObjectiveAK,
StudentId,
ProgramCode,
Program,
EffectiveTerm,
EffectiveTermTitle,
SequenceNumber,
AdmissionStatus,
AwardTypeCode,
AwardType,
PrimaryObjective,
ProgramStatusCode,
Gra |
This variable contains the string that will be used to insert any new rows into the DimStudentTerm table. |
|
DWOperations_Maintenance |
Configuration setting in SSIS_Configurations that specifies the name of the Operations Database. |
||
/*
Sample Update Type1 to Dim
*/
UPDATE [EnterpriseDW].[dbo].[DimStudentObjective]
SET
StudentObjectiveAK = SCD1.StudentObjectiveAK,
StudentId = SCD1.StudentId,
ProgramCode = SCD1.ProgramCode,
Program = SCD1.Program,
EffectiveTerm = SCD1.EffectiveTerm,
EffectiveTermTitle = SCD1.EffectiveTermTitle,
SequenceNumber = SCD1.SequenceNumber,
AdmissionStatus = SCD1.AdmissionStatus,
AwardTypeCode = SCD1.AwardTypeCode,
AwardType = SCD1.AwardType,
PrimaryObjective = SCD1.PrimaryObjective,
ProgramStatusCode = SCD1.ProgramStatusCode,
GraduationStatusCode = SCD1.GraduationStatusCode,
ExpectedGraduationTerm = SCD1.ExpectedGraduationTerm,
ExpectedGraduationTermTitle = SCD1.ExpectedGraduationTermTitle,
ActualGraduationTerm = SCD1.ActualGraduationTerm,
ActualGraduationTermTitle = SCD1.ActualGraduationTermTitle,
GraduationAge = SCD1.GraduationAge,
GraduationAgeRange = SCD1.GraduationAgeRange,
GraduationHonorsCode = SCD1.GraduationHonorsCode,
TransferMajorCode = SCD1.TransferMajorCode,
TransferMajor = SCD1.TransferMajor,
TransferInstitutionId = SCD1.TransferInstitutionId,
TransferInstitution = SCD1.TransferInstitution,
ReportedTerm = SCD1.ReportedTerm,
ReportedTermTitle = SCD1.ReportedTermTitle
FROM [EnterpriseDW].[dbo].[DimStudentObjective] AS [DIM]
INNER JOIN [dbo].[Staged_dbo_DimStudentObjective__Type1Update] AS SCD1
ON Dim.StudentObjectiveAK = SCD1.StudentObjectiveAK
|
"
/*
Sample Update Type1 to Dim
*/
UPDATE " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "].[dbo].[DimStudentObjective]
SET
StudentObjectiveAK = SCD1.StudentObjectiveAK,
StudentId = SCD1.StudentId,
ProgramCode = SCD1.ProgramCode,
Program = SCD1.Program,
EffectiveTerm = SCD1.EffectiveTerm,
EffectiveTermTitle = SCD1.EffectiveTermTitle,
SequenceNumber = SCD1.SequenceNumber,
AdmissionStatus = SCD1.AdmissionStatus,
AwardTypeCode = SCD1.AwardTypeCode,
AwardType = SCD1.AwardType,
PrimaryObjective = SCD1.PrimaryObjective,
ProgramStatusCode = SCD1.ProgramStatusCode,
GraduationStatusCode = SCD1.GraduationStatusCode,
ExpectedGraduationTerm = SCD1.ExpectedGraduationTerm,
ExpectedGraduationTermTitle = SCD1.ExpectedGraduationTermTitle,
ActualGraduationTerm = SCD1.ActualGraduationTerm,
ActualGraduationTermTitle = SCD1.ActualGraduationTermTitle,
GraduationAge = SCD1.GraduationAge,
GraduationAgeRange = SCD1.Graduati |
The SQL string that will update any changed rows in the DimStudentTerm dimension. |
Name | Value | Expression | Description |
Powered by BI Documenter |