|
![]() |
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_DimStudentReceipt_Select 'Jan 1 1900 12:00AM' , 'Mar 4 2016 10:33AM' |
"exec usp_DimStudentReceipt_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 DimStudentReceipt from New Temp Table */
INSERT INTO [EnterpriseDW].[dbo].[DimStudentReceipt]
(
StudentReceiptAK
,StudentId
,PrintedReceiptNumber
,ReceiptCategory
,ReceiptProcesserCode
,ReceiptProcesser
,SessionDate
,SessionSequenceNumber
,ReceiptSequenceNumber
,ReceiptTypeCode
,ReceiptType
,MiscellaneousReceiptCatecoryCode
,MiscellaneousReceiptCategory
,ReceiptReference
,RowIsCurrent
,RowStartDate
,RowEndDate
)
SELECT StudentReceiptAK
,StudentId
,PrintedReceiptNumber
,ReceiptCategory
,ReceiptProcesserCode
,ReceiptProcesser
,SessionDate
,SessionSequenceNumber
,ReceiptSequenceNumber
,ReceiptTypeCode
,ReceiptType
,MiscellaneousReceiptCatecoryCode
,MiscellaneousReceiptCategory
,ReceiptReference
,RowIsCurrent
,RowStartDate
,RowEndDate
FROM Staged_dbo_DimStudentReceipt__New
|
"
/* SQL INSERT into DimStudentReceipt from New Temp Table */
INSERT INTO " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "].[dbo].[DimStudentReceipt]
(
StudentReceiptAK
,StudentId
,PrintedReceiptNumber
,ReceiptCategory
,ReceiptProcesserCode
,ReceiptProcesser
,SessionDate
,SessionSequenceNumber
,ReceiptSequenceNumber
,ReceiptTypeCode
,ReceiptType
,MiscellaneousReceiptCatecoryCode
,MiscellaneousReceiptCategory
,ReceiptReference
,RowIsCurrent
,RowStartDate
,RowEndDate
)
SELECT StudentReceiptAK
,StudentId
,PrintedReceiptNumber
,ReceiptCategory
,ReceiptProcesserCode
,ReceiptProcesser
,SessionDate
,SessionSequenceNumber
,ReceiptSequenceNumber
,ReceiptTypeCode
,Recei |
This variable contains the string that will be used to insert any new rows into the DimStudentTerm table. |
|
/*
Sample Update Type1 to Dim
*/
UPDATE [EnterpriseDW].[dbo].[DimStudentReceipt]
SET StudentReceiptAK = SCD1.StudentReceiptAK
,StudentId = SCD1.StudentId
,PrintedReceiptNumber = SCD1.PrintedReceiptNumber
,ReceiptCategory = SCD1.ReceiptCategory
,ReceiptProcesserCode = SCD1.ReceiptProcesserCode
,ReceiptProcesser = SCD1.ReceiptProcesser
,SessionDate = SCD1.SessionDate
,SessionSequenceNumber = SCD1.SessionSequenceNumber
,ReceiptSequenceNumber = SCD1.ReceiptSequenceNumber
,ReceiptTypeCode = SCD1.ReceiptTypeCode
,ReceiptType = SCD1.ReceiptType
,MiscellaneousReceiptCatecoryCode = SCD1.MiscellaneousReceiptCatecoryCode
,MiscellaneousReceiptCategory = SCD1.MiscellaneousReceiptCategory
,ReceiptReference = SCD1.ReceiptReference
FROM [EnterpriseDW].[dbo].[DimStudentReceipt] AS [DIM]
INNER JOIN [dbo].[Staged_dbo_DimStudentReceipt__Type1Update] AS SCD1
ON Dim.StudentReceiptAK = SCD1.StudentReceiptAK
|
"
/*
Sample Update Type1 to Dim
*/
UPDATE " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "].[dbo].[DimStudentReceipt]
SET StudentReceiptAK = SCD1.StudentReceiptAK
,StudentId = SCD1.StudentId
,PrintedReceiptNumber = SCD1.PrintedReceiptNumber
,ReceiptCategory = SCD1.ReceiptCategory
,ReceiptProcesserCode = SCD1.ReceiptProcesserCode
,ReceiptProcesser = SCD1.ReceiptProcesser
,SessionDate = SCD1.SessionDate
,SessionSequenceNumber = SCD1.SessionSequenceNumber
,ReceiptSequenceNumber = SCD1.ReceiptSequenceNumber
,ReceiptTypeCode = SCD1.ReceiptTypeCode
,ReceiptType = SCD1.ReceiptType
,MiscellaneousReceiptCatecoryCode = SCD1.MiscellaneousReceiptCatecoryCode
,MiscellaneousReceiptCategory = SCD1.MiscellaneousReceiptCategory
,ReceiptReference = SCD1.ReceiptReference
FROM " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ |
The SQL string that will update any changed rows in the DimStudentTerm dimension. |
Name | Value | Expression | Description |
Powered by BI Documenter |