SSIS : Look up transformation Parameter

kkran 831 Reputation points
2021-08-30T22:57:15.7+00:00

Hello Team - How do I replace the below parameter with the logic?

below is the current logic

where [value_timestamp] >= dateadd(dd,-1, service_date)
127752-whatsapp-image-2021-08-30-at-64733-pm.jpeg

I want to replace the where clause for valuetimestamp like below :

where [value_timestamp] between dateadd(hh,-24, service_date) and service_date

Does this work ?
where [value_timestamp] between dateadd(hh,-24, ?) and ? -- But do i need to create another parameter for this ( parameter 2 for teh SERVICE_DATE ?

Thank you

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. ZoeHui-MSFT 41,491 Reputation points
    2021-08-31T06:17:39.09+00:00

    Hi @kkran .

    It should be work with where [value_timestamp] between dateadd(hh,-24, ?) and ?.

    Below is my simple test that I have not created another parameter and the task works.

    127784-screenshot-2021-08-31-141514.jpg

    An example you may also take a reference: partial-cache-lookup-with-a-date-range

    Regards,

    Zoe


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Hot issues October


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.