Groups | Blog | Home
all groups > sql server dts > november 2003 >

sql server dts : looping through files in directory


Richard Kerr
11/21/2003 4:04:40 AM
Hi all,
I know this is a common problem but through all of my searches on the
web; none of the examples work.

The problem is I have a directory on a drive somewhere that contain a
number of CSV/EXCEL Files. The names and number of these files change
on a daily basis.

I need a method within DTS to import all of the files into a single
table?

The format of the files will all match the defintion of the table I want
to import into, so the real issue is solely about how to look through
each file and import.

If you've got any working examples that would be much appreciated.

Cheers in advance

*** Sent via Developersdex http://www.developersdex.com ***
Andrew J. Kelly
11/21/2003 8:59:39 AM
This works: http://www.sqldts.com/?246

--

Andrew J. Kelly
SQL Server MVP


[quoted text, click to view]

Allan Mitchell
11/21/2003 2:09:12 PM
You simply change the text file to an Excel file in this example

Looping, Importing and Archiving
(http://www.sqldts.com/Default.aspx?246)

--
--

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

[quoted text, click to view]

AddThis Social Bookmark Button