Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Import CSV files to a table

3 views
Skip to first unread message

Jens Süßmeyer

unread,
Aug 21, 2003, 11:48:32 AM8/21/03
to
Hello Rog !

From BOL (just read the explanations about BULK INSERT)

BULK INSERT Northwind.dbo.[Order Details]
FROM 'f:\orders\lineitem.tbl'
WITH
(
FIELDTERMINATOR = '|',
ROWTERMINATOR = '|\n'
)

HTH, Jens Süßmeyer.

"Rog" <rfed...@maimonidesmed.org> schrieb im Newsbeitrag
news:021b01c367fa$6fd12bd0$a101...@phx.gbl...
> Hi,
> How do I automatically import csv files to a table.
>
> Thanks in advance


Gandhinath Swaminathan(MS)

unread,
Aug 21, 2003, 11:56:54 AM8/21/03
to
http://support.microsoft.com/default.aspx?scid=kb;en-us;198891 has some
useful information. Hope that helps.

--

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/copyright.htm.
"Rog" <rfed...@maimonidesmed.org> wrote in message

Vinodk

unread,
Aug 21, 2003, 11:31:40 PM8/21/03
to
You can do this using a linked server like in
http://www.extremeexperts.com/sql/articles/ExcelLinkedServer.aspx. Here you
need to just insert it into a table.
You can also use the bulk insert method as in
http://www.extremeexperts.com/sql/articles/SimpleBulkInsert.aspx.

--
HTH,
Vinod Kumar
MCSE, DBA, MCAD
www.extremeexperts.com

0 new messages