c# - Multiple row insert -> statement exceeds the maximum allowed number of 1000 row values -


I am using SQL 2008 Express Edition and I was trying to insert several lines through my C # application I am

I have around 100000 records that need to be inserted.

OK, before all goes well for all 1000 records, I get an error:

"The number of line value expressions in the INSERT statement is allowed maximum of 1000 rows Value is more than the number. "

I looked at my column data type -> int, so that there was no problem. I checked my code and I'm going to put it in the steps of 500 records.

So I googled it but could not get anything useful, can anyone explain why I got this error and if possible, how to solve it.

You can use the square. Which supports batching, transaction and is more efficient than the standard insert statement.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -