MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
Go Back  Xtreme Visual Basic Talk > > > MSSQL - Insert > 1000 rows


Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2015, 02:09 AM
JustinCase2 JustinCase2 is offline
Junior Contributor
 
Join Date: Apr 2006
Posts: 324
Default MSSQL - Insert > 1000 rows


When inserting rows to MSSQL, it has a limit of 1000 rows per statement. I have an import function that opens a text file With a special format, reads lots of logs from this, manipulates the data, and then inserts it into the database. I end up With about 1,500,000 records. Is there a way around the "only 1000 per statement" issue? It totally ruins the programs performance.
I have been looking for suggestions, but they all involve the import wizards etc., and i HAVE TO do it programatically.
I would prefer to bulk insert ALL the rows at once, but at the very least 10000-100000 per statement...

I have come across the bulk copy operation, but i am not sure how to use this when i do not have a matching table to get the data from, but generate it in-memory as a list of Objects.

Last edited by JustinCase2; 05-29-2015 at 02:17 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
 
MSSQL - Insert > 1000 rows
MSSQL - Insert > 1000 rows
 
-->