Hi All,
I have to retrieve data from the same table in different databases at different times of the day. To achieve that I have created a control table to choose the schema and connection strings for different databases. I wanted to schedule the workflow on the server so that it can run at different times of the day and hit the different databases based on the schedule and connection strings at different times.
The logic that I was implementing was :
1) I have a schedule column in the control table and I was comparing the current date time in the scheduler to the scheduled time so that I can filter the row for the right connection string. The problem with that is if the workflow goes in the queue the check for time comparison fails and data cant be retrieved.
2) Is there a better way to achieve this?