Results 1 to 6 of 6

Thread: Data Transformation Services question.

  1. #1
    Join Date
    Oct 2002
    Location
    Philadelphia, PA
    Posts
    3

    Data Transformation Services question.

    I am creating a DTS package for an import of data from MSAccess97 to SQLServer2000. I am quite new to the DTS so bear with me please.

    Everything was fairly simple until I got stumped by the following problem:

    In the source database there was a table with multiple fields (let's say A, B, C) for each record containing their values (let's say 1,2,3).

    Now, in the destination database the table is built differently. It is a table containing the field data and definition.

    So basically I need to turn this
    Code:
    ID       A  B  C
    0        1  2  3
    1        4  5  6
    into this
    Code:
    ID       FieldName         FieldVal
    0           A                 1
    0           B                 2
    0           C                 3
    1           A                 4
    1           B                 5
    1           C                 6
    I am not sure how to go about that... any thoughts?

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    You may try activex for that.

  3. #3
    Join Date
    Oct 2002
    Location
    Philadelphia, PA
    Posts
    3
    I was trying ActiveX but I can't find a good reference of the DTS Object model... so I am kind of poking in the dark... was wondering if anyone had to do something like this before.

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    Take look at sqldts.com, may find something useful there.

  5. #5
    Join Date
    Oct 2002
    Posts
    4
    I like to keep things simple. I would load the access data into SQL as is, then use a stored procedure to put the data into its final destination on the SQL server. You can both clear out the "temporary load" table and call the SP from the package.

  6. #6
    Join Date
    Oct 2002
    Location
    Philadelphia, PA
    Posts
    3
    Hmm.. thanks for the ideas!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •