I searched on the Internet and everything seems to be about individual fields or one insert. I have a migration tool that migrates from an old old database (superbase) to our SQL Server database (2008). I am currently reading 20,000 records from an old database and generating one large line SQLCommand.CommandTextwith 20,000 insert instructions, separated by semicolons. This works great . But can I do 25k? 30k? I tried to have no restrictions, but when I tried to run ExecuteNonQuerywithCommandTextcontaining over 4 million INSERT instructions, he said something about being too long. I donβt remember the exact error message, sorry. I can not find the exact restriction documentation. Itβs important for me to find out, because the more investments I can shoot at a time, the faster the whole process. Any tips / links / documentation would be appreciated, thanks!
source
share