• f_ernestog (8/28/2012)


    I don´t use the query, just set it to "Use a table or a view" and pick the one from staging that is a copy of it.

    Is there way I can use a SQL Query and send over a parameter to it? because this table works like a log, there will be no updates, just inserts, and I have a date column I can use, so if I can send the last date to the query as a parameter, I would be able to get only the new records 🙂

    Thanks.

    First of all, use a query where you select only the column you need to perform the lookup. Otherwise you will be selecting every single bit of data of the lookup table into memory, which can be costly.

    Do you want to use the parameterized query in the OLE DB Source, or in the lookup component?

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