Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to export 20 milion rows to only one file ?

Status
Not open for further replies.

ahmedsa2018

Programmer
Apr 25, 2018
67
0
0
EG
I work on sql server 2019 i have table have 20 milion rows .

i need to export data Exist on table to only one file by using sql server 2019 .

so what best tool and faster tool can help me to extract 20 milions rows from sql server to csv file (only one file )

and on same time is good for performance
 
Like I said on the post that Frederico posted, use BCP. Read up on the "CSV" option they came out with in 2017.

For anyone else interested, here's the link I provided to the MS Documentation on the subject. The first article to show up is the documentation on BCP. The second article is one on how to use it.

[URL unfurl="true"]https://duckduckgo.com/?q=bcp+in+sql+server[/url]

--Jeff Moden
-------------------------------------------------------------------------------
"RBAR" is pronounced "ree-bar" and is a "Modenism" for "Row By Agonizing Row
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top