Create table before the dataflow in BIML

后端 未结 3 701
情话喂你
情话喂你 2021-01-22 01:52

I am using BIML and BIDSHelper to create SSIS package. I am trying to import data from csv to sql server. I want to create table in the destination database before the dataflow

3条回答
  •  无人及你
    2021-01-22 02:21

    On a somewhat related note, check out Samuel Vanga's article and pay attention to the "Create Objects" aspect. Running that package will create your tables in the DB, after which you can Generate the SSIS package that relies on those tables.

    I used his example to implement the following workflow:

    1. Read Excel Workbook spreadsheets for field names, datatypes (this is a template given to clients when asking for data in flat files)
    2. Populate metadata tables with flat file names/ids, fields [names, datatypes, delimiters, precision, scale, etc]
    3. Read metadata tables to inform flat file sources, create staging tables, create packages that read flat file and populate staging tables.

提交回复
热议问题