I want to insert say 50,000 records into sql server database 2000 at a time. How to accomplish this?
Sql – Insert a fixed number of rows 2000 at a time in sql server
sqlsql-server
sqlsql-server
I want to insert say 50,000 records into sql server database 2000 at a time. How to accomplish this?
Best Solution
You can use the SELECT TOP clause: in MSSQL 2005 it was extended allowing you to use a variable to specify the number of records (older version allowed only a numeric constant)
You can try something like this: (untested, because I have no access to a MSSQL2005 at the moment)