dbTalk Databases Forums  

Importing .txt files into a SQL table

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Importing .txt files into a SQL table in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
skc
 
Posts: n/a

Default Importing .txt files into a SQL table - 09-01-2004 , 04:24 AM






Hi,

Can someone please help me. I have a directory full
of .txt files and I wish to import the contents and the
filename into a table in SQL2000.

Any links on the web etc...??

Any help will be much appreciated.

Thanks,

Skc

Reply With Quote
  #2  
Old   
Petr SIMUNEK
 
Posts: n/a

Default Re: Importing .txt files into a SQL table - 09-01-2004 , 04:39 AM






see "importing data" in SQL Server Books Online
The easy way is to use DTS wizard from Enterprise Manager
rightclick on DB you want to import in, and select "all tasks" - "Import
data"

select dataSource - textFile

"skc" <anonymous (AT) discussions (DOT) microsoft.com> píse v diskusním príspevku
news:3f6a01c49005$83a8a3c0$a601280a (AT) phx (DOT) gbl...
Quote:
Hi,

Can someone please help me. I have a directory full
of .txt files and I wish to import the contents and the
filename into a table in SQL2000.

Any links on the web etc...??

Any help will be much appreciated.

Thanks,

Skc



Reply With Quote
  #3  
Old   
skc
 
Posts: n/a

Default Re: Importing .txt files into a SQL table - 09-01-2004 , 05:20 AM



I want an automated routine to import all .txt in a
directory and the filename in the table.

Quote:
-----Original Message-----
see "importing data" in SQL Server Books Online
The easy way is to use DTS wizard from Enterprise Manager
rightclick on DB you want to import in, and select "all
tasks" - "Import
data"

select dataSource - textFile

"skc" <anonymous (AT) discussions (DOT) microsoft.com> píse v
diskusním príspevku
news:3f6a01c49005$83a8a3c0$a601280a (AT) phx (DOT) gbl...
Hi,

Can someone please help me. I have a directory full
of .txt files and I wish to import the contents and the
filename into a table in SQL2000.

Any links on the web etc...??

Any help will be much appreciated.

Thanks,

Skc


.


Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: Importing .txt files into a SQL table - 09-01-2004 , 06:09 AM



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

Import all files in a directory (Multi Step)
(http://www.databasejournal.com/featu...le.php/1461661)


"skc" <anonymous (AT) discussions (DOT) microsoft.com> wrote

I want an automated routine to import all .txt in a
directory and the filename in the table.

Quote:
-----Original Message-----
see "importing data" in SQL Server Books Online
The easy way is to use DTS wizard from Enterprise Manager
rightclick on DB you want to import in, and select "all
tasks" - "Import
data"

select dataSource - textFile

"skc" <anonymous (AT) discussions (DOT) microsoft.com> píse v
diskusním príspevku
news:3f6a01c49005$83a8a3c0$a601280a (AT) phx (DOT) gbl...
Hi,

Can someone please help me. I have a directory full
of .txt files and I wish to import the contents and the
filename into a table in SQL2000.

Any links on the web etc...??

Any help will be much appreciated.

Thanks,

Skc


.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.