Using SSIS, how to Read and Execute SQL Code that is stored in a column

  • Hello every one,

    I have a Varchar(max) column that saves basic TSQL Code.

    I need a way to read that code and execute it using SSIS package.

    Any thoughts on how to do this is appreciated..

    Thanks in advance

  • Two ways of doing this:

    Execute SQL Task to retrieve the SQL into a variable.

    Another Execute SQL Tasks which executes the data in this variable

    or

    Excute SQL Task which store retrives the data into as SQL Server variable, and then use sp_executesql to execute the it.



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

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

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