FactStudentReceiptTotalsLoad
 FactStudentReceiptTotalsLoad (Integration Services Package)
  Workflow Screenshot
  Properties
Property Value
Name FactStudentReceiptTotalsLoad
Description This package will extract the Payable Data. One row per Payable will be created.
Checkpoint File Name
Checkpoint Usage Never
Check Signature On Load True
Creation Date Tuesday, May 08, 2012 4:11 PM
Creator Computer Name SCOWAN
Creator Name SCOWAN\hetgroup
Debug Mode False
Delay Validation False
Disable False
Disable Event Handlers False
Enable Configurations True
Encrypt Checkpoints False
Fail Package On Failure False
Fail Parent On Failure False
Forced Execution Value 0
Force Execution Value None
Description False
ID 6611e0e2-6d7d-4b0d-8728-063d9bbd3515
Interactive Mode False
Is Default Locale ID False
Isolation Level Serializable
Locale ID 1033
Logging Mode Enabled
Max Concurrent Executables -1
Maximum Error Count 1
Offline Mode False
Package Type DTSDesigner100
Protection Level EncryptSensitiveWithUserKey
Save Checkpoints False
Suppress Configuration Warnings False
Suspend Required False
Transaction Option Supported
Update Objects False
Version Build 285
Version Comments
Version Guid 7133a4a1-a096-47bd-8a6d-9b0c86d6191f
Version Major 1
Version Minor 0
  Executables
Name Type Description
Data Flow Task
Data Flow Task
Task
Execute SQL Task
Task
Execute SQL Task
Task
Execute SQL Task
  Connection Managers
Name Description
  Log Providers
Name Description
  User Defined Variables
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.
UPDATE EnterpriseDW.dbo.FactStudentReceiptTotals SET StudentSK = obs_std.NewStudentSK FROM EnterpriseDW.dbo.FactStudentReceiptTotals fct INNER JOIN EnterpriseDW.dbo.DimStudent ds ON (fct.StudentSK = ds.StudentSK) INNER JOIN dbo.Obsolete_DimStudent obs_std ON (obs_std.OldStudentSK = ds.StudentSK);
" UPDATE " + @[User::EDWDBName] + ".dbo.FactStudentReceiptTotals SET StudentSK = obs_std.NewStudentSK FROM " + @[User::EDWDBName] + ".dbo.FactStudentReceiptTotals fct INNER JOIN " + @[User::EDWDBName] + ".dbo.DimStudent ds ON (fct.StudentSK = ds.StudentSK) INNER JOIN dbo.Obsolete_DimStudent obs_std ON (obs_std.OldStudentSK = ds.StudentSK); "
This is the SQL statement that will point any remaining Student Receipt Fact receords to the new Student ID after a Merge.
DECLARE @IncrementalBeginDtTm datetime = 'Jan 1 1900 12:00AM' /* Date and Time to validate against RowUpdatedOn in Source Tables */ DECLARE @IncrementalEndDtTm datetime = 'Mar 4 2016 10:33AM' SELECT CASHIER_SESSION_KEY + RIGHT('00000' + CAST(RECEIPT_SEQ as varchar(5)),5) as StudentReceiptAK ,STUDENT_ID AS StudentIdAK ,CAST(CASE WHEN ISDATE(StReceipt.ADD_DATE) = 1 THEN StReceipt.ADD_DATE ELSE '1900-01-01' END AS DATETIME) AS DateAK ,CAST(RECEIPT_AMOUNT AS NUMERIC(11,2)) AS ReceiptTotal ,CAST(ISNULL(RECEIPT_AMOUNT,0) AS NUMERIC(11,2)) + CAST(ISNULL(RECEIPT_OTHER_1,0) AS NUMERIC(11,2)) AS ReceiptTotalPlusCoverage ,CAST(RECEIPT_OTHER_2 AS NUMERIC(11,2)) AS ReceiptFeesPaid ,CAST(TOTAL_RECV_PAID AS NUMERIC(11,2)) AS ReceiptReceivablesPaid ,CAST(TOTAL_OBLG_PAID AS NUMERIC(11,2)) AS ReceiptObligationsPaid FROM AR_RECEIPT_A StReceipt WHERE ( StReceipt.RowUpdatedOn >= @IncrementalBeginDtTm AND StReceipt.RowUpdatedOn <= @IncrementalEndDtTm AND StReceipt.STUDENT_ID IS NOT NULL AND StReceipt.RECEIPT_STATUS = 'CO' ) UNION ALL SELECT CASHIER_SESSION_KEY + RIGHT('00000' + CAST(RECEIPT_SEQ as varchar(5)),5) as StudentReceiptAK ,CUSTOMER_ID AS StudentIdAK ,CAST(CASE WHEN ISDATE(CustReceipt.ADD_DATE) = 1 THEN CustReceipt.ADD_DATE ELSE '1900-01-01' END AS DATETIME) AS DateAK ,CAST(RECEIPT_AMOUNT AS NUMERIC(11,2)) AS ReceiptTotal ,CAST(ISNULL(RECEIPT_AMOUNT,0) AS NUMERIC(11,2)) + CAST(ISNULL(RECEIPT_OTHER_1,0) AS NUMERIC(11,2)) AS ReceiptTotalPlusCoverage ,CAST(RECEIPT_OTHER_2 AS NUMERIC(11,2)) AS ReceiptFeesPaid ,CAST(TOTAL_RECV_PAID AS NUMERIC(11,2)) AS ReceiptReceivablesPaid ,CAST(TOTAL_OBLG_PAID AS NUMERIC(11,2)) AS ReceiptObligationsPaid FROM AR_RECEIPT_A CustReceipt INNER JOIN ST_STDNT_A Stdnt ON ( CustReceipt.CUSTOMER_ID = Stdnt.STUDENT_ID and Stdnt.STUDENT_ID IS NOT NULL ) WHERE ( CustReceipt.RowUpdatedOn >= @IncrementalBeginDtTm AND CustReceipt.RowUpdatedOn <= @IncrementalEndDtTm AND CustReceipt.STUDENT_ID IS NULL AND CustReceipt.CUSTOMER_ID IS NOT NULL AND CustReceipt.RECEIPT_STATUS = 'CO' )
"DECLARE @IncrementalBeginDtTm datetime = '" + @[User::IncrementalBeginDtTm] + "' /* Date and Time to validate against RowUpdatedOn in Source Tables */ DECLARE @IncrementalEndDtTm datetime = '" + @[User::IncrementalEndDtTm] + "' SELECT CASHIER_SESSION_KEY + RIGHT('00000' + CAST(RECEIPT_SEQ as varchar(5)),5) as StudentReceiptAK ,STUDENT_ID AS StudentIdAK ,CAST(CASE WHEN ISDATE(StReceipt.ADD_DATE) = 1 THEN StReceipt.ADD_DATE ELSE '1900-01-01' END AS DATETIME) AS DateAK ,CAST(RECEIPT_AMOUNT AS NUMERIC(11,2)) AS ReceiptTotal ,CAST(ISNULL(RECEIPT_AMOUNT,0) AS NUMERIC(11,2)) + CAST(ISNULL(RECEIPT_OTHER_1,0) AS NUMERIC(11,2)) AS ReceiptTotalPlusCoverage ,CAST(RECEIPT_OTHER_2 AS NUMERIC(11,2)) AS ReceiptFeesPaid ,CAST(TOTAL_RECV_PAID AS NUMERIC(11,2)) AS ReceiptReceivablesPaid ,CAST(TOTAL_OBLG_PAID AS NUMERIC(11,2)) AS ReceiptObligationsPaid FROM AR_RECEIPT_A StReceipt WHERE ( StReceipt.RowUpdatedOn >= @IncrementalBeginDtTm A
This is the SQL statement to extract all the Student Receipt Total information 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.
Y
This SSIS_Configuration Setting will determine if a Full Load will be done or not.
  System Variables
Name Value Expression Description
Powered by BI Documenter