and would like the dts job to look up the above table and run it based on
the date, start and end time. Is this possible. Pls advise.
thanks
Bob
"nos...@nospam.com" wrote:
> .
>
Example:
date_column, start_time, end_time
12/8/2009,8am,11pm
12/9/2009,10am, 10pm
12/10/2009,9am, 10pm
etc..
Based on above sample, say tomorrow (12/8) the dts will run starting at 8am,
every hour until 11pm.
Hope this is clear.
"Todd C" <To...@discussions.microsoft.com> wrote in message
news:C115B34C-5FF2-48F0...@microsoft.com...
You could possibly trim your table down to two DateTime fields, which would
make this a little easier to manage:
CREATE TABLE dbo.PackageControl (
StartPoint DATETIME NOT NULL,
EndPoint DATETIME NOT NULL)
Create 2 package variables of Date datatype (it is actually DateTime data
type, even though it is labeled as "Date")
Create an Execute SQL task that reads the dbo.PackageControl table,
selecting the appropriate record for the current date. Have the task's Result
Set go to the two variables as appropriate.
Use a Precedence Constraint from your Execute SQL task to the Data Flow task
based on your two user variables and a system varialbe ContainerStartTime.
Set up SQL Agent to execute the job once per hour. The logic as to whether
the data flow will run or not will be contained in the package.
Good Luck. Keep us posted.
--
Todd C
MCTS SQL Server 2005
"nos...@nospam.com" wrote:
> .
>