how to use existing oledb connection in script task

  • Hi Friends,

    I have an existing oledb db connection in connection manager, how can I use the same connection in Script Task to fill a datatset.

    Can anybody help me?

    Vaseem

  • I would just use a Execute SQL task with full resultset before the Script task to store the result set in an object type variable and then use something like this in the script code

    oleDA.Fill(dt, Dts.Variables.Item("vResultSet").Value)

    oleDA is of type OleDbDataAdapter.

    HTH

    ~Mukti

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

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