dumping large amounts of data from sql server to a text file

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
alchemy9

dumping large amounts of data from sql server to a text file

Post by alchemy9 » Tue 01 Feb 2005 16:44

what is the best way to extact a lot of data from sql server to a text file,
(10's of millions of rows),

the sql query will be along the lines of select * from atable

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Wed 02 Feb 2005 08:55

Use TMSTable or TMSQuery with FetchAll := False and Unidirectional := True.
Also you can use ReadOnly := True (it may give a little impact on performance)

Post Reply