How to transform table results into another table

  • Hi,

    In a SSIS package, I am getting the output to a table named query.

    Now, I want to transform the data or I should say I want to put t-sql code( many updates,joins) to the table named query and then put the results into anohter table.

    Which tool in SSIS i should use for doing this?

    Regards,

    Sushant

    Regards
    Sushant Kumar
    MCTS,MCP

  • What is a table named query?

    I only know about named queries in SSAS, so I'm not sure what it has to do with SSIS.

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

  • If I read this literally, I come to the conclusion that data has been imported to a table whose name is 'query', which is somewhat confusing, to say the least!

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • @ phil

    Exactly

    Regards
    Sushant Kumar
    MCTS,MCP

  • Koen Verbeeck (5/4/2011)


    What is a table named query?

    I only know about named queries in SSAS, so I'm not sure what it has to do with SSIS.

    When I import data from another server, then the default name SSIS gives is Query.

    But, I dont know, wat has table name to do wid all this...I wish i wouldn't have mentioned the table name

    in the first instance.

    Regards,

    Sushant

    Regards
    Sushant Kumar
    MCTS,MCP

  • So you have data in one table, you want to manipulate it with TSQL and put the results in another table.

    I would use an Execute SQL Task.

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

  • Koen Verbeeck (5/4/2011)


    So you have data in one table, you want to manipulate it with TSQL and put the results in another table.

    I would use an Execute SQL Task.

    Why does execute SQL task doesn't come under data flow task...

    That means I have to put it under Control flow task...

    But the output query is under Data flow..

    Regards,

    Sushant

    Regards
    Sushant Kumar
    MCTS,MCP

  • SKYBVI (5/4/2011)


    Koen Verbeeck (5/4/2011)


    So you have data in one table, you want to manipulate it with TSQL and put the results in another table.

    I would use an Execute SQL Task.

    Why does execute SQL task doesn't come under data flow task...

    That means I have to put it under Control flow task...

    But the output query is under Data flow..

    Regards,

    Sushant

    If you are transferring data from one table to another, an INSERT query will do the work for you in a fast set-based fashion - it is a one-hit operation and there is therefore no data flow and no data pipeline.

    What do you mean by 'output query'?

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • Phil Parkin (5/4/2011)


    SKYBVI (5/4/2011)


    Koen Verbeeck (5/4/2011)


    So you have data in one table, you want to manipulate it with TSQL and put the results in another table.

    I would use an Execute SQL Task.

    Why does execute SQL task doesn't come under data flow task...

    That means I have to put it under Control flow task...

    But the output query is under Data flow..

    Regards,

    Sushant

    If you are transferring data from one table to another, an INSERT query will do the work for you in a fast set-based fashion - it is a one-hit operation and there is therefore no data flow and no data pipeline.

    What do you mean by 'output query'?

    By output query I mean the table output (query) from which I have to do the transformation. It is the source of data for me.

    Regards,

    Sushant

    Regards
    Sushant Kumar
    MCTS,MCP

  • Your explanation is very confusing. You should get your syntax straight.

    If you want to do some transformations on the table, create a new dataflow, use that table as source for the OLE DB Source, add your transformations and write the results to the database with the OLE DB Destination.

    If you want to do the transformations with TSQL, use an Execute SQL Task.

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

Viewing 10 posts - 1 through 9 (of 9 total)

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