SSIS Control Flow Chart



  1. Import data from excel and the database to an intermediate database (OrgSt), after making sure it is empty.
  2. Validate that the data imported to the intermediate DB.
  3. Load all the tables to be used in the process to a cache
  4. Import the data to the database
    1. after you alter a table by importing data to it reload the table to a cache


Validations

  • each record in OrgSt_OUSR has to either originate("Source") from the excel (E) or from the Database (D)
  • each record in OrgSt_CM_User has to either originate("Source") from the excel (E) or from the Database (D)
  • check if more than one users share the same Email
  • each record in OrgSt_CM_UserLogin has to either originate("Source") from the excel (E) or from the Database (D)
  • each record in OrgSt_CM_Location has to either originate("Source") from the excel (E) or from the Database (D)


Organizational_Structure_Dacia.xls Content

  • The Database Mapping columns contain the reference of the excel column in the database, where the data from the excel column is being stored
  • The Lookup columns contain the database table from which the excel column retrieves data

OUSR





Database MappingLookup

ColumnDescription
TableFieldDB TypeTableField

U_Name

OUSRU_Name



E_Mail

OUSRE_Mail




CM_Branch





Database MappingLookup

ColumnDescription
TableFieldDB TypeTableField

Code

IDMS_COMMONDEV211.BRANCHCodeVARCHAR(30)


Description

IDMS_COMMONDEV211.BRANCHDescriptionVARCHAR(80)


Company

IDMS_COMMONDEV211.BRANCHCompanyIDVARCHAR(30)IDMS_COMMONDEV211.COMPANYCode


CM_Location





Database MappingLookup

ColumnDescription
TableFieldDB TypeTableField

Code

IDMS_COMMONDEV211.LOCATIONCodeVARCHAR(30)


Description

IDMS_COMMONDEV211.LOCATIONDescriptionVARCHAR(80)


Branch

IDMS_COMMONDEV211.LOCATIONBranchIDVARCHAR(30)IDMS_COMMONDEV211.BRANCHBranchID

Country

IDMS_COMMONDEV211.LOCATION




City

IDMS_COMMONDEV211.LOCATION




PostalCode

IDMS_COMMONDEV211.LOCATION




Latitude

IDMS_COMMONDEV211.LOCATION




Longitude

IDMS_COMMONDEV211.LOCATION




Address

IDMS_COMMONDEV211.LOCATION





CM_DimensionPermission





Database MappingLookup

ColumnDescription
TableFieldDB TypeTableField

UserEmail




IDMS_COMMONDEV211.USEREmail

DimensionId

IDMS_COMMONDEV211.DIMENSIONPERMISSIONDimensionIDNVARCHAR(30)


DimensionValues

IDMS_COMMONDEV211.DIMENSIONPERMISSIONDimensionValuesNVARCHAR(4000)


Company

IDMS_COMMONDEV211.DIMENSIONPERMISSIONCompanyIDNVARCHAR(30)IDMS_COMMONDEV211.COMPANYCode


CM_User





Database MappingLookup

ColumnDescription
TableFieldDB TypeTableField

Email

IDMS_COMMONDEV211.USEREmailVARCHAR(50)


FirstName

IDMS_COMMONDEV211.USERFirstnameVARCHAR(50)


LastName

IDMS_COMMONDEV211.USERLastnameVARCHAR(50)


IsInspector

IDMS_COMMONDEV211.USERIsInspectorTINYINT


InterCompanyOperation

IDMS_COMMONDEV211.USERInterCompanyOperationTINYINT


IsDisabled

IDMS_COMMONDEV211.USERIsDisabledTINYINT


ChangePwsAtNextLogin

IDMS_COMMONDEV211.USER
TINYINT


CM_UserGroup





Database MappingLookup

ColumnDescription
TableFieldDB TypeTableField

UserEmail

IDMS_COMMONDEV211.USERGROUP




Group

IDMS_COMMONDEV211.USERGROUPGroupIDVARCHAR(30)IDMS_COMMONDEV211.GROUPGroupID

Company

IDMS_COMMONDEV211.USERGROUP




CM_UserLogin





Database MappingLookup

ColumnDescription
TableFieldDB TypeTableField

UserEmail

IDMS_COMMONDEV211.USERLOGIN




Company

IDMS_COMMONDEV211.USERLOGINCompanyIDVARCHAR(30)IDMS_COMMONDEV211.COMPANYCompanyID

PreferredBranch

IDMS_COMMONDEV211.USERLOGINPreferredBranchIDVARCHAR(30)IDMS_COMMONDEV211.BRANCHBranchID

PreferredLocation

IDMS_COMMONDEV211.USERLOGINPreferredLocationIDVARCHAR(30)IDMS_COMMONDEV211.LOCATIONLocationID


  • No labels
Write a comment…