dbTalk Databases Forums  

Trigger to kick of job based on source flat files

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


Discuss Trigger to kick of job based on source flat files in the microsoft.public.sqlserver.dts forum.



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

Default Trigger to kick of job based on source flat files - 10-17-2003 , 12:30 PM






Is it possible to kick off a DTS package automatically
trigged by the existence of the source flat files? I know
I can write an activeXscript to check for the existence of
these file but I would still have to set up the job to run
the activeXscript to look for these files. Correct?!

So, I would like a trigger that will read that file (or
its properties) and kick off the job.

Is that possible? If so , how?

Thanks in advance for your help.

Sandra

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Trigger to kick of job based on source flat files - 10-18-2003 , 05:49 AM






I would use the FileSystemWatcher class in .Net. This raises events which
could trigger the package.

Not using .Net you could have a job which fires every 2 mins which checks
for files and if it finds them then it fires the package.

How can I check if a file exists?
(http://www.sqldts.com/default.aspx?211)

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Sandra" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Is it possible to kick off a DTS package automatically
trigged by the existence of the source flat files? I know
I can write an activeXscript to check for the existence of
these file but I would still have to set up the job to run
the activeXscript to look for these files. Correct?!

So, I would like a trigger that will read that file (or
its properties) and kick off the job.

Is that possible? If so , how?

Thanks in advance for your help.

Sandra



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.