Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9266287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:16:59+00:00 2026-06-18T14:16:59+00:00

Scenario: I have a lookup table which has a date column, I need to

  • 0

Scenario:

I have a lookup table which has a date column, I need to look at this date column and check if its today’s date, if not then wait for 5 mins and check the same thing again, and if the date is current send an email and exit the loop, and if after 6 retries if the date is not current execute a SQL task.

I have a ForLoop Container with the following settings:

InitExpression : @[User::Counter] = 0
EvalExpression : @[User::Counter] < 6
AssignExpression : @[User::Counter] = @[User::Counter] + 1

How / Where do I check the date :

SELECT ControlTimeStamp from LOOKUPTABLE
 WHERE ControlTimeStamp = DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE()))

Note:

I’m using Business Intelligence Development Studio (BIDS) 2008 for SSIS package development.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:17:00+00:00Added an answer on June 18, 2026 at 2:17 pm

    I think you’ll want an approach like this. Execute your SQL Task to determine whether today is your date. From there you’ll need to either sleep for N minutes or you’ll want to send an email. The trick is to use an Expression on the Precedence Constraint between the Execute SQL Task the children.

    My implementation differs slightly from what yours but the concept remains the same. I created two variables, @ActualDate and @ReferenceDate. @ActualDate is today and @ReferenceDate gets set from the Execute SQL Task. I then see whether they are equivalent. For what you have, if you get a result, then you know the send mail condition has been met so change your Expressions to meet that.

    enter image description here

    What isn’t shown is how to terminate the loop early as I’m not quite certain how to do that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a scenario in which I think I need to lock a table
Scenario I have a DevExpress DataGrid which is bound to a DataSet in C#.
Scenario I have a 10 million row table. I partition it into 10 partitions,
Scenario: I have @Singleton UserFactory ( @Stateless could be) , its method createSession() generating
I have developed a web dashboard which has a structure of controls embedded inside
My scenario is as follows: I have a table of data (handful of fields,
I would like to know if this scenario is possible: I Have Topic jms
I have a MySql table containing over 500,000 records. This table contains some keywords
Following is the scenario. I have something called as Domain which can have multiple
Here's the scenario... I have a table of subnets. (see below) I have an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.