Re: Import many groups of dbase files
From: Allan Mitchell (allan_at_no-spam.sqldts.com)
Date: 03/24/04
- Next message: anonymous_at_discussions.microsoft.com: "Re: Max Columns"
- Previous message: kda: "Import many groups of dbase files"
- In reply to: kda: "Import many groups of dbase files"
- Next in thread: kda: "Re: Import many groups of dbase files"
- Reply: kda: "Re: Import many groups of dbase files"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 14:14:54 -0000
Probably the easiest way would be
1. Use a cmdline zip tool to extract the folder
2. Loop through the folder and move the right file into the right directory
3. Have 20 * DataPump tasks (1 for each folder)
4. Fire the package
You can use for the looping this article
Looping, Importing and Archiving
(http://www.sqldts.com/Default.aspx?246)
-- ---------------------------- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "kda" <anonymous@discussions.microsoft.com> wrote in message news:AEC63B9D-4DB3-47C7-8DFF-2C8A6C107033@microsoft.com... > I would great appreciate any suggestions on the following problem: > > Every day about 30 zips files will come in. Each zip file contains a folder with about 20 dbf files. The dbf files are all named accordingly. So I would like to take each zip file and import all of the dbf into appropriate 20 sql tables. > > Question is how I should arrange the files to have a dts got through them all. I would like to keep them in folders according to the zip files, but then each zip have 20 different named dbf files. So then 30 times running the dts with 20 different data pumps. > > Or should I extract the zip files according to the dbf, putting all the same tables in one folder, incrementing the name. And then have the dts go through each folder and import all dbf into the same sql table and on to the next folder. So then have 20 dts packages to go through for each sql table. > > Any suggestions, examples? > >
- Next message: anonymous_at_discussions.microsoft.com: "Re: Max Columns"
- Previous message: kda: "Import many groups of dbase files"
- In reply to: kda: "Import many groups of dbase files"
- Next in thread: kda: "Re: Import many groups of dbase files"
- Reply: kda: "Re: Import many groups of dbase files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|