![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello... A customer will be sending me several files each day and I want to try and write a DTS Package to loop through the files and process each one. I have figured out how to read through the contents of a folder/directory and look at each file, but how do I get to the next step and process each file? I will need to execute a stored procedure against each file - passing the file name into the Stored Proc. I can do this for a single file in my DTS package, but I do not know how to loop through each one, execute my stored proc task and then exit. If anyone can help or pass along an article or link, I would appreciate it. Thanks - will |
#3
| |||
| |||
|
|
This shows looping over files and doing stuff with each one- Looping, Importing and Archiving (http://www.sqldts.com/default.aspx?246) -- Darren Green http://www.sqldts.com http://www.sqlis.com "dw" <dw (AT) discussions (DOT) microsoft.com> wrote in message news:A1AA282D-BA62-4A70-B2AF-1956292DBB4D (AT) microsoft (DOT) com... Hello... A customer will be sending me several files each day and I want to try and write a DTS Package to loop through the files and process each one. I have figured out how to read through the contents of a folder/directory and look at each file, but how do I get to the next step and process each file? I will need to execute a stored procedure against each file - passing the file name into the Stored Proc. I can do this for a single file in my DTS package, but I do not know how to loop through each one, execute my stored proc task and then exit. If anyone can help or pass along an article or link, I would appreciate it. Thanks - will |
![]() |
| Thread Tools | |
| Display Modes | |
| |