all groups > sql server dts > december 2004 >
You're in the

sql server dts

group:

DTS.. Flatfile Read..... otrher alternative.... ?


DTS.. Flatfile Read..... otrher alternative.... ? Higgim Batham
12/30/2004 5:46:27 PM
sql server dts:
Currently I am loading a table by reading a flat file.
Since I am loading more than 5 million records it is taking some time to
load the data. I am using DTS package to read the data.
Is there any alternative(other than DTs package) to read the data from flat
file and to load the data into the table in SQL.
I am using SQL2K.
Batham

Re: DTS.. Flatfile Read..... otrher alternative.... ? Allan Mitchell
12/31/2004 6:41:29 AM
If time is an issue then by far the quickest way is to use BULK INSERT (Task or statement)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


[quoted text, click to view]

RE: DTS.. Flatfile Read..... otrher alternative.... ? Nigel Rivett
1/2/2005 1:03:01 AM
I would go for a bulk insert from a stored procedure - it will be simplest
and quickest.

[quoted text, click to view]
Re: DTS.. Flatfile Read..... otrher alternative.... ? Higgim Batham
1/3/2005 10:26:55 AM
Allan,
Thanks for the reply.
What sence you are referring "BULK INSERT". Is it like with one SQL insert
which inserts so many records at one time. OR is there any "BULK INSERT"
concept is there? Can you please explain me what you meant by "BULK INSERT".
Thanks,
Higgim

[quoted text, click to view]

Re: DTS.. Flatfile Read..... otrher alternative.... ? Higgim Batham
1/3/2005 1:16:34 PM
Thank you very much.
Higgim

[quoted text, click to view]
mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%20Server\80\Tools\Books\tsq
lref.chm::/ts_ba-bz_4fec.htm
[quoted text, click to view]

Re: DTS.. Flatfile Read..... otrher alternative.... ? Allan Mitchell
1/3/2005 8:26:09 PM
BULK INSERT exists as a TSQL statement and as a DTS task (Wrapper around the statement). It is by far the fastest method of loading
a text file into SQL Server

Have a look in BOL here


mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%20Server\80\Tools\Books\tsqlref.chm::/ts_ba-bz_4fec.htm

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


[quoted text, click to view]

AddThis Social Bookmark Button