dbTalk Databases Forums  

How to Import Muliple Text Files to same table ?

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


Discuss How to Import Muliple Text Files to same table ? in the microsoft.public.sqlserver.dts forum.



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

Default How to Import Muliple Text Files to same table ? - 02-24-2005 , 06:07 AM






Hi!

I was pointed in this direction from microsoft.public.windows.server.sbs

I have a question about automating importing text files into a table in SQL
Server. I`m a complete SQL server "noob" but I am looking for a way to
import all
the data from a set of text files in a folder, then to either move or rename
the files once they have been imported.

Every day our PBX phone system logs all activity into a .CSV text file. At
midnight a new text file is created for the next 24 hours logging.

Whilst i can manually import each text file into a table in SQL server using
DTS there must be a way to automate this ?

Does anyone have a solution, or maybe point me in the direction of a
newsgroup that will be able to assist further.

Many thanks

Geoff



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

Default Re: How to Import Muliple Text Files to same table ? - 02-24-2005 , 06:52 AM






Try this article to help build a package that handles all of this sort of
file handling-

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

Once done, schedule the package via SQL Server Agent.


--
Darren Green
http://www.sqldts.com
http://www.sqlis.com

"Geoff Dutch" <GeoffDutch (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi!

I was pointed in this direction from microsoft.public.windows.server.sbs

I have a question about automating importing text files into a table in
SQL
Server. I`m a complete SQL server "noob" but I am looking for a way to
import all
the data from a set of text files in a folder, then to either move or
rename
the files once they have been imported.

Every day our PBX phone system logs all activity into a .CSV text file.
At
midnight a new text file is created for the next 24 hours logging.

Whilst i can manually import each text file into a table in SQL server
using
DTS there must be a way to automate this ?

Does anyone have a solution, or maybe point me in the direction of a
newsgroup that will be able to assist further.

Many thanks

Geoff





Reply With Quote
  #3  
Old   
Geoff Dutch
 
Posts: n/a

Default Re: How to Import Muliple Text Files to same table ? - 02-24-2005 , 09:59 AM



I was looking at that page over lunch time after having searched the NG.
Unfortuanately i understand next to nothing of it aside from the summary of
what it does. I would need someone holding my hand showing me what goes
where and how to do it as i`m a total noob on SQL !!

"Darren Green" wrote:

Quote:
Try this article to help build a package that handles all of this sort of
file handling-

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

Once done, schedule the package via SQL Server Agent.


--
Darren Green
http://www.sqldts.com
http://www.sqlis.com

"Geoff Dutch" <GeoffDutch (AT) discussions (DOT) microsoft.com> wrote in message
news:ECF295DB-6923-4630-98C1-6CA370702ADA (AT) microsoft (DOT) com...
Hi!

I was pointed in this direction from microsoft.public.windows.server.sbs

I have a question about automating importing text files into a table in
SQL
Server. I`m a complete SQL server "noob" but I am looking for a way to
import all
the data from a set of text files in a folder, then to either move or
rename
the files once they have been imported.

Every day our PBX phone system logs all activity into a .CSV text file.
At
midnight a new text file is created for the next 24 hours logging.

Whilst i can manually import each text file into a table in SQL server
using
DTS there must be a way to automate this ?

Does anyone have a solution, or maybe point me in the direction of a
newsgroup that will be able to assist further.

Many thanks

Geoff






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.