Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 export data in a file into many tables

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-07-15 : 10:35:19
paula writes "hello!!
i need to export data in a txt file into many tables... (more than one)
my problem: i have my xml file and save it as txt file...
the txt file has the following format:

1	PerezM          35559456	Los Manzanos	584
7 TorresM 38888456 Av Belgrano 415


now... the three first colmuns goes to table1 and the last goes to table2...
how can i do these? is these possible?
thanks, paula"

Glockenspiel
Yak Posting Veteran

50 Posts

Posted - 2004-07-15 : 12:01:20
Good news is yes; it's possible!

Here are a couple options:
1. use BULK INSERT with a format file
2. use DTS (Data Transformation Services)
3. use BCP (bulk copy program) with a format file

See the BOL on these topics for more details.
Go to Top of Page
   

- Advertisement -