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 6242917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:02:35+00:00 2026-05-24T12:02:35+00:00

[SSIS 2008 R2] My Control Flow looks like this: Truncate staging table in a

  • 0

[SSIS 2008 R2]

My Control Flow looks like this:

  1. Truncate staging table in a DB (e.g. DB_Staging) local to the SSIS server –>

  2. Load the staging table via a Data Flow from an external SQL Server (e.g. DB_SOURCE) –>

  3. Use a T-SQL MERGE query to UPDATE, INSERT, and DELETE between the staging
    table and an table in a different DB (e.g. DB_DESTINATION) local to the SSIS server

For the third step, I have a Data Flow Task connecting to DB_DESTINATION. The Data Flow for this task has an OLE DB source set to SQL Command containing the T-SQL MERGE statement (query snipped for brevity):

MERGE   dbo.destination AS dest
USING   (SELECT * FROM DB_STAGING.dbo.source) AS src
ON      ...
    WHEN    MATCHED
            AND ...
            THEN UPDATE SET
                ...
    WHEN    NOT MATCHED BY TARGET
            THEN INSERT 
                ...
    WHEN    NOT MATCHED BY SOURCE
            AND ... 
            THEN DELETE;

The problem is, I am getting a validation error on the T-SQL MERGE query in the OLE DB Source. I’m new to SSIS, so I am not sure what is wrong. The queries to load the staging table and to MERGE work, as I have tested them in Management Studio. Can anyone offer any guidance? The validation error message from BIDS is:

Validation error. DFT_MergeData OLEDB_DB_DESTINATION [1]: No column
information was returned by the SQL command.

  • 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-24T12:02:35+00:00Added an answer on May 24, 2026 at 12:02 pm

    The OLE DB Source in a Data Flow requires a statement that produces output in columns (a SELECT statement). The MERGE statement is not a valid statement for this.

    If you want to use the MERGE statement, you would use it in a Execute SQL Statement task in the control flow, which would replace the Data Flow task.

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

Sidebar

Related Questions

I'm creating a data mart in SQL Server 2008 using SSIS for load, and
I'm currently working with Microsoft SSIS and SQL server 2008 and I would like
I am using SSIS (SQL Server 2008) to lookup values from a table. I
I am using SSIS 2008 to execute multiple stored procedures in parallel in control
I've got about 100 million rows that I'm moving in SSIS 2008 via a
We have a TFS 2008 server that we are using for source control having
In SSIS 2008 I have a Script Task that checks if a table exists
In SSIS (sql server 2008) I have a Sql task which is calling my
I am writing an SSIS package to run on SQL Server 2008. How do
I am using SQL Server SSIS 2008 R2. I want to dynamically change a

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.