Sql-server – Fast way to import 2GB csv file into SQL Server 2008

csvimportsql serverssms

I am new to database,I am using SSMS 2008 R2 to import 2GB of data from a .csv file.

It is taking around 115mins to import.

Can anybody let me know any better way to perform this import.

Best Answer

You need to use bcp.exe or SSIS. Read Import and Export Bulk Data by Using the bcp Utility (SQL Server) and The Data Loading Performance Guide. Also, read How to Analyze SQL Server Performance to be able to tell why something is slow.

After you've read those, come back with a more actionable question, including structure of table, csv structure, repeatability of the job, access issues etc.