Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6367017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:29:45+00:00 2026-05-25T00:29:45+00:00

I have two databases. My source looks like this: FirstTable —— TestingData ———– Test

  • 0

I have two databases. My source looks like this:

FirstTable
------
TestingData
-----------
   Test
  Values
    go
   here
    go
   Test

I want to map to a database that looks like this:

FirstTable
------
TestingDataId
----------------
       1
       2
       3
       4
       3
       4

TestingDataEnum
------
TestingDataId      TestingDataValue
-------------      ----------------
     1                 Test
     2                Values
     3                  go
     4                 here

TestingDataId in table TestingDataEnum is the primary key, but it is not an identity.

The problem is that I need a way to insert the values only when they are new and convert them to the numeric value (either the newly inserted one, or the existing one).

I can seem some possible ways to hack this together, but I can’t think I am the first one to want to abstract repeated data like this. I would like to go with a proven solution rather than something that I just hack together.

Does anyone know of a good way to do this with SSIS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:29:46+00:00Added an answer on May 25, 2026 at 12:29 am

    Sounds like you need to use the Lookup transformation to find the string and insert that in to the data flow. You can also use Merge to achieve the same thing but have a read of this SSIS Junkie article: http://consultingblogs.emc.com/jamiethomson/archive/2005/10/21/2289.aspx

    Alternatively, I’d recommend doing the lookup in the SQL providing the data (assuming the source data is coming from a database table as well).

    EDIT: I missed the main point of your question with my initial answer, sorry, so I’ll change it a bit. I thought you were only doing a lookup to change one data type to another but the same can be used to find out if a value is not in your table.

    When the lookup fails you need to handle the error and perform the insert, you should then be able to use the new int value in your data stream.

    Or is that the “hack” method you were thinking of? 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two distinct databases as a source for a Silverlight RIA application. They
I have two databases with same structure in MS SQL server. I'd like to
I have two databases, one is an MS Access file, the other is a
We have two databases, in two separate locations. One of the databases resides in
I have two databases at two different places, both databases are same with table
I have two databases in SQL2k5: one that holds a large amount of static
I have the situation where i have two databases with same structure. The first
I am using SQL Server 2000 and I have two databases that both replicate
I have two SQL Server 2005 databases, one is for development and the other
I have two SQL Server (2000) databases. Both are used for the same project,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.