Miami CJS Source Tables Import Package
This Documentation details the configuration steps for adding new tables to the Source Tables Importer deployed to Miami.
Objects
Variable
The first thing to note is the Package string variable FolderPath, this contains the path where all the files will be contained. This value can be updated to point to the files accordingly to the phase of the project, Pass 1, pass 2, etc. This variable is later referenced by the connection managers to dynamically find the files.
Tasks
The Control flow tab where all the tables are imported contains 2 steps for each table; an Execute SQL task and a Data Flow task.
Execute SQL Task: Truncates the target table prior to importing the file contents.
Data Flow Task: Contains the column mappings between the file and the target table. References the file-specific Connection manager.
Flat File Connection Manager: Contains the location of the target file to be imported. When right-clicked
Connection Manager
Adding a new table
To add a new table, the process is as follows:
Create an Execute SQL Task, with SQL code to truncate the target table.
If the targe table doesn’t already exist in the Source DB, I’d advise Importing the file using the SQL Import-Export Wizard first, this will create the table with the data types with minimal manual input.
Create a Data Flow Task, with a new source flat file reference and a Destination reference to the SQL table.
Create a Connection Manager the name should match the file to make it easier to distinguish in the Connection Manager view within Visual Studio.
Right click on the created Connection Manager > Properties > Expression > Add the variable @[User::FolderPath] + “CJSXXXX-FileName.TXT“. This will allow the file location to be flexible.
Initial commit location:
\TFS\Conversion\MiamiDade\MiamiDadeCJISSourceImport