all groups > sql server dts > january 2005 >
You're in the

sql server dts

group:

get text files from a folder



get text files from a folder Eduardo Greco
1/14/2005 3:59:25 PM
sql server dts: Hi all!
I have a package that imports data from a text file, located in an specific
folder.
My problem is that many files can be inside the folder and their names are
unknown for me. How can I find out the name and quantity of files within the
folder, and use these informations into a dynamic task to start the import
process?
Thank you all in advance!
Eduardo

RE: get text files from a folder Ed
1/14/2005 7:53:03 PM
did you try the scripting.filesystemobject?

Ed

[quoted text, click to view]
Re: get text files from a folder Mark
1/14/2005 9:07:22 PM
You can install Perl package and do it by perl script. By perl you can check
the file names and quantity and rename the file names to meet your DTS
package needs. Then you can invoke the dtsrun by system("dtsrun ....") from
the perl script.



Mark


[quoted text, click to view]

Re: get text files from a folder Eduardo Greco
1/15/2005 1:00:57 PM
How to do it?

[quoted text, click to view]

Re: get text files from a folder Michael Vardinghus
1/15/2005 5:25:10 PM
Or you could use this brilliant site ....

http://www.sqldts.com/default.aspx?246


[quoted text, click to view]

AddThis Social Bookmark Button