Lookup Parametrization

  • Hi

    I have a package where i have lookup and derivied coloumn and ole db command

    And have 12 tables with same name ending with diffrent ID's for eg

    dbo.Table_1

    dbo.Table_2 etc etc till 12

    Given requirement is that this package is to be used for all the 12 tables and they want me to paramatrized table name dbo.table_?

    so that they dotn have to make 12 packages they can use 1 only by just changing the param value

    so is it possible to use a variable for tablename in lookup and oledb command

    I have created Dynamicsql sp's as an subsititute but no luck they it did work in lookup

    but its not working in oledb

    I can just mke it work either in 1 of them lookup or oledb both of them dont work together with param

    I thought last option is the forum or just give up

    Thanks

  • I'd recommend that you post the code that doesn't work along with any error messages you may receive...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

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

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