Re: How to import a bunch of files?
- From: "Jasper Smith" <jasper_smith9@xxxxxxxxxxx>
- Date: Tue, 6 Dec 2005 00:00:05 -0000
Looping, Importing and Archiving
http://www.sqldts.com/default.aspx?246
For SQL2005 you can use the ForEach Loop file enumerator
Looping over files with the Foreach Loop
http://www.sqlis.com/default.aspx?55
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Richard Lewis Haggard" <HaggardAtWorldDotStdDotCom> wrote in message
news:eYhbjZf%23FHA.1032@xxxxxxxxxxxxxxxxxxxxxxx
>I have a large number of text files that I want to import into a database.
>I have created a DTS package that knows how to import and transform the
>data so that it can be imported but that seems to be hard coded to a
>particular file. Doing this by hand 18 thousand times is not something I
>want to do. Is there a command line interface that I can call from either
>DOS or WSH to import all of this data? I'm thinking that something like
>
> for %%f in (*.txt) do <import %%f>
>
> would be great. Anyone have a suggestion on how this could be done?
>
> --
> Richard Lewis Haggard
>
.
- Follow-Ups:
- Re: How to import a bunch of files?
- From: Richard Lewis Haggard
- Re: How to import a bunch of files?
- References:
- How to import a bunch of files?
- From: Richard Lewis Haggard
- How to import a bunch of files?
- Prev by Date: How to import a bunch of files?
- Next by Date: Re: How to import a bunch of files?
- Previous by thread: How to import a bunch of files?
- Next by thread: Re: How to import a bunch of files?
- Index(es):
Relevant Pages
|
Loading