In message <30052946556d4458a972ca34eb0ca766 (AT) SQLMonster (DOT) com>, chinna
jambu via SQLMonster.com <forum (AT) SQLMonster (DOT) com> writes
Quote:
Hello, I want to create a DTS, it must import multiple csv files from the
same Folder into two different tables. The files are "LDP_" + 3 letter
code( like LDP_CCC,LDP_XXX) and "ADP_" +3 letter code (Like ADP_AKC,ADP_MEM)
. I know how to load it to the database, I am using looping method.I
created two dts Packages one for LDP_*.csv and another for ADP_*.csv.
Somebody can help me how to load only LDP_*.csv files to LDPtable and
ADP_*.files to ADPtable. |
After updating your connection, add some code to determine the table
name based on the name of the file found. Then set the SourceObjectName
of your DataPump task.
N.B. This will only work if the structure of the files/tables is the
same.
Changing the DataPump Source and Destination Tables
(http://www.sqldts.com/default.aspx?213)
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com
PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org