No column information was returned by the SQL Command

  • Hi

    I am working on SSIS Package where I need to Update data if it exists. I am using SSIS 2012 with VS 2010.

    I have put OLEDB Destination and put below SQL.

    Update Table

    Set firstname= ?

    , lastname= ?

    WHERE email= ?

    When I click on mapping then I am getting this error "No column information was returned by the SQL Command.".

    Any thoughts?

  • You cannot update a table using the OLE DB Destination.

    You need to use the OLE DB Command for that. However, this component will update the table row by row, so it is extremely slow.

    You better write the rows to a staging table and then use an Execute SQL Task to issue an UPDATE statement.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply