Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSIS Folder Monitoring?

Status
Not open for further replies.

mlager

Programmer
Sep 1, 2006
74
US
Is SSIS capable of monitoring a folder for a file? I'd like to monitor a folder that will have an XML file put into place by another system, and as quickly as possible import and process this file. If this is possible, how flexible is this folder monitoring. For example, can SSIS reconize when the file is there, check properties about the file, rename it, move it, etc. Any advice is appreciated!
 
SSIS is capable of doing this in a not so efficient manner. To get this functionality you would have to have either a SSIS package that is always running or a Agent job that fires the SSIS package(s) every n seconds or minutes. Another option would be to build a small C# service that monitored the folder and when the file landed would execute the package(s).
 
What is the downside to having the package run all the time, drain on resources?
 
well you would be desining a package into an endless loop where you would never have a logical exit. Scheduling a job to fire every minute or so around the time the file is sopposed to be there would be the more correct way.
 
I've read about the WMI Event Watcher task, is this something that would require the package to run endlessly?
 
Not sure about the WMI task but for any task in apackage to run the package must be running.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top