Inserting more than 1000 rows from Excel into SQLServer Inserting more than 1000 rows from Excel into SQLServer sql-server sql-server

Inserting more than 1000 rows from Excel into SQLServer


Just edit the data in Excel or another program to create N amount of insert statements with a single insert for each statement, you'll have an unlimited number of inserts. For example...

INSERT INTO table1 VALUES   (6696480,'McMurdo Station',-77.846,166.676,'Antarctica','McMurdo')INSERT INTO table1  VALUES  (3833367,'Ushuaia',-54.8,-68.3,'America','Argentina')...19,000 laterINSERT INTO table1 VALUES   (3838854,'Rio Grande',-53.78769,-67.70946,'America','Argentina')


Microsoft provides an import wizard with SQL Server. I've used it to migrate data from other databases and from spreadsheets. It is pretty robust and easy to use.


There are several options, the Import Wizard which Erik suggests, or SSIS is another good one.

Read here:Import Excel spreadsheet columns into SQL Server database