sqlwrite: INSERT statement exceeds the maximum allowed number of 1000 row values..
Ältere Kommentare anzeigen
Hi,
I have been using sqlwrite with no problem until upgrading to 2022b. I got below error when using sqlwrite function
number of row value expressions in the INSERT statement exceeds the maximum allowed number of 1000 row values..
Did Matlab change the behavior of sqlwrite? How can i resolve this issue?
4 Kommentare
Rik
am 22 Okt. 2022
Are you indeed inserting more than 1000 rows in one statement?
Polsak Tothong
am 24 Okt. 2022
Rik
am 25 Okt. 2022
I can't find anything in the release notes, but the documentation does warn that "The Microsoft® Access™ ODBC driver demonstrates unexpected behavior during large inserts. When you insert a large amount of data with Microsoft Access, insert the data in batches. For example, if you want to insert 100,000 rows of data, insert 10,000 rows at a time."
I hardly ever work with databases, so I'm not entirely sure I can help you, but which version did you use previously?
Harsh Sanghai
am 28 Okt. 2022
The error looks like it comes from SQL (see here https://dba.stackexchange.com/questions/82921/the-number-of-row-value-expressions-in-the-insert-statement-exceeds-the-maximum) .
Antworten (1)
Harsh Sanghai
am 28 Okt. 2022
0 Stimmen
As per my understanding it is a limitation of SQL Server, which they have in place to reduce compilation times.
Refer to the following link that explains the limitation and ways you can insert over 1000 rows while avoiding the message:
Kategorien
Mehr zu Database Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!