dbTalk Databases Forums  

question on dts sqlserver2005

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss question on dts sqlserver2005 in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default question on dts sqlserver2005 - 12-04-2009 , 08:55 PM






I have a table that contains the following columns:
date_column
start_time
end_time

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

Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: question on dts sqlserver2005 - 12-07-2009 , 08:10 AM






You'll need to be more specific. You want SSIS to read this table and make
some sort of logical Go/No Go decision based on the Date and times?
Help us understand what is going on.
=====
Todd C


"nospam (AT) nospam (DOT) com" wrote:

Quote:
I have a table that contains the following columns:
date_column
start_time
end_time

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


.

Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: question on dts sqlserver2005 - 12-07-2009 , 04:51 PM



The purpose of this DTS is to extract data from mysql into sqlserver, then
do some manipulation and email the result, every hour based on the start and
end time.

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" <ToddC (AT) discussions (DOT) microsoft.com> wrote

Quote:
You'll need to be more specific. You want SSIS to read this table and make
some sort of logical Go/No Go decision based on the Date and times?
Help us understand what is going on.
=====
Todd C


"nospam (AT) nospam (DOT) com" wrote:

I have a table that contains the following columns:
date_column
start_time
end_time

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


.

Reply With Quote
  #4  
Old   
Todd C
 
Posts: n/a

Default Re: question on dts sqlserver2005 - 12-11-2009 , 08:14 AM



Ah, OK. Think I got it now.
(since your op title reference 2005, I'll assume you will be using SSIS. If
not, this won't be much help, just so you know.)

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


"nospam (AT) nospam (DOT) com" wrote:

Quote:
The purpose of this DTS is to extract data from mysql into sqlserver, then
do some manipulation and email the result, every hour based on the start and
end time.

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" <ToddC (AT) discussions (DOT) microsoft.com> wrote in message
news:C115B34C-5FF2-48F0-8CA6-1B3DD7D1FAE7 (AT) microsoft (DOT) com...
You'll need to be more specific. You want SSIS to read this table and make
some sort of logical Go/No Go decision based on the Date and times?
Help us understand what is going on.
=====
Todd C


"nospam (AT) nospam (DOT) com" wrote:

I have a table that contains the following columns:
date_column
start_time
end_time

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


.



.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.