|
![]() |
Name | Value | Expression | Description |
Y |
Configuration setting in SSIS_Configurations that determines if Alerts will be send via e-mail in case of an abend or data problems |
||
DELETE
FROM
[EnterpriseDW] .[dbo].[DimChartOfAccount]
WHERE GlAccountSK IN
(
SELECT GlAccountSK
FROM [dbo].[Obsolete_DimChartOfAccount] obs
WHERE obs.DoNotDeleteFlag = 0
)
|
"
DELETE
FROM
" + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "] .[dbo].[DimChartOfAccount]
WHERE GlAccountSK IN
(
SELECT GlAccountSK
FROM [dbo].[Obsolete_DimChartOfAccount] obs
WHERE obs.DoNotDeleteFlag = 0
)
" |
||
Configuration setting from SSIS_Configuration to specify the domain where the e-mail server is running. |
|||
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. |
||
The list of files to be attached to the e-mail detailing record counts and data validation issues. |
|||
Testing (text maintained in SSIS Configurations table) |
The text that will be coded in the body of the e-mail. This is an configuration setting in SSIS_Configurations that will be appended to the end of the e-mail. |
||
C:\DW Local Stuff\SSIS\ |
The directory on the File System where the files to be attached to the e-mail for notifications will be stored. This is a configuration setting from SSIS_Configurations. |
||
help@hetgroup.org |
Configuration setting from SSIS_Configurations that will specify the From E-mail address to be used in e-mail notifications. |
||
datawarehouse |
The configuration setting from SSIS_Configurations that specify the password used for the e-mail server when sending e-mail notifications. |
||
ipeterso@hetgroup.org |
The configuration setting from SSIS_Configurations that specify the To Email address when sending e-mail notifications. This cannot be multiple e-mail addresses, but can be a distribution list. |
||
windows |
The configuration setting from SSIS_Configurations that specify the userid used for the e-mail server when sending e-mail notifications. |
||
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
CAST(Coa.FISCAL_YEAR + Coa.GL_ACCT_NO as varchar(29)) as YearGlAccountNumberAK
,CAST(
CASE
WHEN SUBSTRING(Coa.GL_ACCT_NO,22,4) = ' ' THEN SUBSTRING(Coa.GL_ACCT_NO,1,8) + '-' +
SUBSTRING(Coa.GL_ACCT_NO,9,6) + '-' + SUBSTRING(Coa.GL_ACCT_NO,15,2) + '-' +
SUBSTRING(Coa.GL_ACCT_NO,17,5)
WHEN SUBSTRING(Coa.GL_ACCT_NO,22,4) <> ' ' THEN SUBSTRING(Coa.GL_ACCT_NO,1,8) + '-' +
SUBSTRING(Coa.GL_ACCT_NO,9,6) + '-' + SUBSTRING(Coa.GL_ACCT_NO,15,2) + '-' +
SUBSTRING(Coa.GL_ACCT_NO,17,5) + '-' + SUBSTRING(Coa.GL_ACCT_NO,22,4)
END AS VARCHAR) as GlAccountNumber
,Coa.FISCAL_YEAR as FiscalYear
,ISNULL(Coa.ACTIVE_IND, 'N/A') as AccountStatusCode
,CASE
WHEN Coa.ACTIVE_IND = 'A' THEN 'Active'
WHEN Coa.ACTIVE_IND = 'I' THEN 'In-Active'
WHEN Coa.ACTIVE_IND = 'S' THEN 'Summary'
ELSE 'N/A'
END AS AccountStatus
,CAST(ISNULL(Coa.START_DATE, '1900-01-01') as datetime) AS StartDate
,CAST(ISNULL(Coa.END_DATE, '2098-06-30') as datetime) AS EndDate
,CASE
WHEN Coa.COA_BUDGETED_ACCT_IND = 'Y' THEN 'Yes'
ELSE 'No'
END AS IsAccountBudgeted
,ISNULL(Coa.COA_BUDGET_POOL_NO, 'N/A') as BudgetPoolNo
FROM COA_ORG_UNIT_FILE Coa
WHERE (CAST(Coa.FISCAL_YEAR + Coa.GL_ACCT_NO as varchar(29))) IN
(
/* Select changed records from Student File */
SELECT CAST(FISCAL_YEAR + GL_ACCT_NO as varchar(29))
FROM COA_ORG_UNIT_FILE
WHERE (
COA_ORG_UNIT_FILE.RowUpdatedOn >= @IncrementalBeginDtTm
AND COA_ORG_UNIT_FILE.RowUpdatedOn <= @IncrementalEndDtTm
AND COA_IND = 'Y'
)
)
|
"DECLARE @IncrementalBeginDtTm datetime = '" + @[User::IncrementalBeginDtTm] + "' /* Date and Time to validate against RowUpdatedOn in Source Tables */
DECLARE @IncrementalEndDtTm datetime = '" + @[User::IncrementalEndDtTm] + "'
SELECT
CAST(Coa.FISCAL_YEAR + Coa.GL_ACCT_NO as varchar(29)) as YearGlAccountNumberAK
,CAST(
CASE
WHEN SUBSTRING(Coa.GL_ACCT_NO,22,4) = ' ' THEN SUBSTRING(Coa.GL_ACCT_NO,1,8) + '-' +
SUBSTRING(Coa.GL_ACCT_NO,9,6) + '-' + SUBSTRING(Coa.GL_ACCT_NO,15,2) + '-' +
SUBSTRING(Coa.GL_ACCT_NO,17,5)
WHEN SUBSTRING(Coa.GL_ACCT_NO,22,4) <> ' ' THEN SUBSTRING(Coa.GL_ACCT_NO,1,8) + '-' +
SUBSTRING(Coa.GL_ACCT_NO,9,6) + '-' + SUBSTRING(Coa.GL_ACCT_NO,15,2) + '-' +
SUBSTRING(Coa.GL_ACCT_NO,17,5) + '-' + SUBSTRING(Coa.GL_ACCT_NO,22,4)
END AS VARCHAR) as GlAccountNumber
,Coa.FISCAL_YEAR as FiscalYear
,ISNULL(Coa.ACTIVE_IND, 'N/A') as Ac |
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 DimChartOfAccount from New Temp Table */
INSERT INTO [EnterpriseDW].[dbo].[DimChartOfAccount]
(YearGlAccountNumberAK
,GlAccountNumber
,FiscalYear
,AccountStatusCode
,AccountStatus
,StartDate
,EndDate
,IsAccountBudgeted
,BudgetPoolNo
,RowIsCurrent
,RowStartDate
,RowEndDate)
SELECT YearGlAccountNumberAK
,GlAccountNumber
,FiscalYear
,AccountStatusCode
,AccountStatus
,StartDate
,EndDate
,IsAccountBudgeted
,BudgetPoolNo
,RowIsCurrent
,RowStartDate
,RowEndDate
FROM [dbo].[Staged_dbo_DimChartOfAccount__New]
|
"
/* SQL INSERT into DimChartOfAccount from New Temp Table */
INSERT INTO " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "].[dbo].[DimChartOfAccount]
(YearGlAccountNumberAK
,GlAccountNumber
,FiscalYear
,AccountStatusCode
,AccountStatus
,StartDate
,EndDate
,IsAccountBudgeted
,BudgetPoolNo
,RowIsCurrent
,RowStartDate
,RowEndDate)
SELECT YearGlAccountNumberAK
,GlAccountNumber
,FiscalYear
,AccountStatusCode
,AccountStatus
,StartDate
,EndDate
,IsAccountBudgeted
,BudgetPoolNo
,RowIsCurrent
,RowStartDate
,RowEndDate
FROM [dbo].[Staged_dbo_DimChartOfAccount__New]
" |
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. |
||
0 |
The number of rows that were loaded into the Dimension. This is will be compared against the row count from the source system. |
||
/*
Sample Update Type1 to Dim
*/
UPDATE [EnterpriseDW].[dbo].[DimChartOfAccount] SET YearGlAccountNumberAK = SCD1.YearGlAccountNumberAK
,GlAccountNumber = SCD1.GlAccountNumber
,FiscalYear = SCD1.FiscalYear
,AccountStatusCode = SCD1.AccountStatusCode
,AccountStatus = SCD1.AccountStatus
,StartDate = SCD1.StartDate
,EndDate = SCD1.EndDate
,IsAccountBudgeted = SCD1.IsAccountBudgeted
,BudgetPoolNo = SCD1.BudgetPoolNo
FROM [EnterpriseDW].[dbo].[DimChartOfAccount] AS [DIM]
INNER JOIN [dbo].[Staged_dbo_DimChartOfAccount__Type1Update] AS SCD1
ON Dim.YearGlAccountNumberAK = SCD1.YearGlAccountNumberAK
|
"
/*
Sample Update Type1 to Dim
*/
UPDATE " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "].[dbo].[DimChartOfAccount] SET YearGlAccountNumberAK = SCD1.YearGlAccountNumberAK
,GlAccountNumber = SCD1.GlAccountNumber
,FiscalYear = SCD1.FiscalYear
,AccountStatusCode = SCD1.AccountStatusCode
,AccountStatus = SCD1.AccountStatus
,StartDate = SCD1.StartDate
,EndDate = SCD1.EndDate
,IsAccountBudgeted = SCD1.IsAccountBudgeted
,BudgetPoolNo = SCD1.BudgetPoolNo
FROM " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "].[dbo].[DimChartOfAccount] AS [DIM]
INNER JOIN [dbo].[Staged_dbo_DimChartOfAccount__Type1Update] AS SCD1
ON Dim.YearGlAccountNumberAK = SCD1.YearGlAccountNumberAK
"
|
The SQL string that will update any changed rows in the DimStudentTerm dimension. |
|
c:\stubfile.txt |
Temporary file name that will be used to create the e-mail notifications. This is a configuration setting from SSIS_Configurations. |
||
25 |
The SMTPPort for the e-mail server to be used when sending notification e-mails. This is a configuration setting from SSIS_Configurations. |
||
www.ad.hetgroup.org |
The SMTP Server Name contains the name for the e-mail server. This is a configuration setting from SSIS_Configurations. |
||
0 |
This is the Row count from the Source System to compare against that of the DimCurriculum table to ensure that all records were copied. |
Name | Value | Expression | Description |
Powered by BI Documenter |