Moving MultiValued (MV) Data to SQL Server


The information contained in this guide outlines the steps required to move a MV file to Microsoft SQL server using Kore's SQL Accelerator and Kourier products.  We suggest the following directory structure to organize the various files used in this process.

Directory Usage
...\ODS\Inbox Contains the datasets to be imported by the SQL SSIS packages.  This directory must be visible to both your MV server and the SQL server.
...\ODS\Logs Contains the logs files generated by each SSIS package.
...\ODS\Config Contains the configuration files used by the Kore's SQL Accelerator.
...\ODS\Packages Contains the SSIS packages created by Kore's SQL Accelerator.
...\ODS\Schema Contains schema information generated by the quick-start tools.

Assumptions made in the Guide

  1. The column names used in the Kourier export must match the column names in the target SQL table.
  2. The name of the Kourier export will match the name of the target SQL table.
  3. The name of the export file will follow the naming convention of:  2n_7n_sql_table.export_mode
  4. A DSN has been created that points to the ...\ODS\Inbox.
  5. An Integration ID has been created with a SITE_ID property.

Exporting a MV File to SQL Server 

  1. In most MV systems, the dictionaries for a file do not accurately reflect the structure of the data.  Use the KT.FILEUSAGE tool to analyze the data in a file and compare it to the data defining dictionaries (D-type) for the file.  .
  1. Review and edit the results of the KT.FILEUSAGE command in Microsoft Excel using this procedure.
  1. Use the KT.SCHEMA2EXPORT command to build the Kourier exports for a file.  An export will be created for all single-valued fields (the parent export), all multi-valued fields and all associated multi-valued fields (the child exports).  Each export will be mapped directly into a single SQL table.  A Kourier Service will also be created to run the exports created by this command.
  1. Review each export created by the KT.SCHEMA2EXPORT command. The overall goal of each export is to take advantage of the power of SQL without carrying along MV database conventions that work against you in the SQL environment.
  1. While in the export, use the DDL button to generate a SQL script to create the SQL table based upon the fields in the export.  Paste that script into the SQL Query tool and execute it.
  1. While in the export, use the Generate Package button to access the SSIS configuration screen.  Review the parameters in this screen and click the Generate button to create the SSIS package. 
  1. Review the service created by the KT.SCHEMA2EXPORT command.
  1. While in the service, run the service in full refresh mode to extract the data from U2 and move it to the ...\ODS\Inbox.
  1. Run the SSIS job to load the exported data.  Resolve any errors that may occur. The most common errors are:
  1. Repeat the above steps on each MV file you plan on moving to SQL Server.

Create the SSIS Master Package

Once you have created and tested all the individual SSIS packages create one master SSID package that runs all the individual packages.  This allows you to schedule all jobs as a single unit.  For a master package, make sure to limit the maximum number of tasks executed in parallel to 1.  This setting can be found on the General tab in the package properties.


User Guide - Table of Contents