Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Export table and import file - fastest way Expand / Collapse
Author
Message
Posted Saturday, October 19, 2013 5:58 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, October 29, 2013 2:13 AM
Points: 3, Visits: 6
Hello,
I have a table that contains about 50 millions of records and i would like to know which is the fastest method to export this table - bcp, DTS/SSIS, impot and exports wizard?
What is the best way to import text file to SQL Server?


www.fcbarcelona.extremazing.com - FC Barcelona - extreme and amazing team
Post #1506388
Posted Saturday, October 19, 2013 6:05 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, December 6, 2013 7:21 AM
Points: 6, Visits: 22
BCP would be fastest option. To import to a table you can use OPENROWSET with ot without BULK option.

www.learn-with-video-tutorials.com -databases video tutorials
Post #1506389
Posted Thursday, October 31, 2013 4:52 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 3:51 PM
Points: 36,959, Visits: 31,469
learnwithvideotutorials (10/19/2013)
BCP would be fastest option. To import to a table you can use OPENROWSET with ot without BULK option.


Or just BULK INSERT for the import.


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1510455
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse