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

  • SEARCH
  • Home
  • 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 9210825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:09:50+00:00 2026-06-18T01:09:50+00:00

I have two OLEDB Data Sources that have similar columns: TMP_CRUZTRANS ————- CUENTA_CTE numeric

  • 0

I have two OLEDB Data Sources that have similar columns:

TMP_CRUZTRANS
-------------
CUENTA_CTE numeric (20,0)

TMP_CTACTE_S_USD
----------------
CON_OPE numeric(20,0)

I need to substract all the similar values between this two tables and keep the rows which are different. Is there a transformation/task within SSIS that can perform NOT IN constraint normally used in SQL query?

Currently, I am performing this operation using Execute SQL Task on Control Flow.

enter image description here

The top Data Flow creates the first table TMP_CRUZTRANS (Merge join between other 2 tables… But I guess that’s not important for my question) that i need to keep the different values with the second table.

In the Execute SQL Task, I have the following statement:

INSERT  INTO [dbo].[TMP_CYA] 
SELECT RUT_CLIE, CUENTA_CTE, MONTO_TRANSAC 
FROM [dbo].[TMP_CRUZTRANS]
WHERE CUENTA_CTE NOT IN (SELECT CON_OPE FROM TMP_CTACTE_S_USD)

Finally, with the new table TMP_CYA I can continue with my work.

The problem with this approach is that the TMP_CRUZTRANS got like 5 millions of rows, so it’s VERY slow inserting all this data into a table using Execute SQL Task. It takes about like 5 hours to perform this operation. That’s why I need to do this inside the Data Flow task.

  • 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-06-18T01:09:52+00:00Added an answer on June 18, 2026 at 1:09 am

    You can use Lookup transformation available within Data Flow task to achieve your requirement.

    Here is a sample that illustrates what you are trying to achieve.

    Create a package with data flow task. Inside the data flow task, use OLE DB Source to read data from your source table TMP_CRUZTRANS. Use Lookup transformation to validate the existence of the values against the table dbo.TMP_CTACTE_S_USD between given columns. Then redirect the non-matching output to OLE DB Destination to insert rows into table dbo.TMP_CYA

    Here is how data flow task would look like in place of the Execute SQL Task that you are currently using.

    Data flow task

    Configure the Lookup transformation as shown below:

    On the General tab page, select Redirect rows to no match output from Specify how to handle rows with no matching entries because you are interested only in non matching rows.

    Lookup transformation General

    On the Connection tab page, select the appropriate OLE DB Connection manager and select the table dbo.TMP_CTACTE_S_USD. That is the table against which you would like to validate the data.

    Lookup transformation Connection

    On the Columns tab page, drag the column CUENTA_CTE and drop it on CON_OPE to establish the mapping between source and lookup tables. Click OK.

    Lookup transformation Columns

    When you connect the Lookup transformation with OLE DB Destination, Input Output Selection dialog will appear. Please make sure to select Lookup No Match Output.

    Here is the sample before executing the package.

    Before execution

    You can see that only 2 rows non matching rows have been transferred to OLE DB destination.

    Execution

    You can notice that the destination table now contains the two non matching rows after package execution.

    After execution

    Hope that helps.

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

Sidebar

Related Questions

I have two data sources, the first one uses OLEDB to connect and other
So I have learned that that the Microsoft.Jet.OLEDB.4.0 data provider for querying data sources
I have an excel (xlsx 2010) document that contains nothing but two columns, one
I have created Generic Repository and I have two entities that i need to
I have two columns say Main and Sub . (they can be of same
I have two tables, lets say table1 and table2 with common columns, id and
I have two queries that find both the Zip codes, and the States for
I have two seperate databases from which I want to retrieve data and display
I have a data flow process where I have an OLEDB Source and an
I have two pics: pic16f88 and pic16f688. The f88 is running a loop that

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.