Click here to Skip to main content
15,898,373 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends, I have need to create a job which will be looking into a folder to see if files exists and then call a stored procedure to run when a file gets in. The job will have to be listening to that folder for file arrival. Any help??

Thank you
Posted
Comments
[no name] 18-Apr-13 12:35pm    
Any help with what? This is not a question or a description of any kind of a problem.

1 solution

ok, with ssis you are going to have to have some sort of monitor that fires an event which could then execute the ssis package.

This is really not what SSIS is designed for.

What you really need to do is create a windows service. In this service I would recommend you implement the FileSystemWatcher on the folder you want to monitor. Using the events that get fired when something changes, you can then execute a proc directly. If however you need the processing within the SSIS package then just execute the package passing in the fileinfo details.

some references below:

Creating a simple Windows Service[^]

http://blogs.msdn.com/b/michen/archive/2007/03/22/running-ssis-package-programmatically.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900