Hi @Martin Wang , Welcome to Microsoft Q&A.
There is no inherent limitation on the maximum number of ExecuteNonQuery calls in C# itself.
The ExecuteNonQuery method is part of the ADO.NET framework, and its execution is primarily dependent on the underlying database management system (DBMS) being used. The limitations, if any, would be specific to the DBMS and its configuration rather than the C# language or ADO.NET.
Your next search direction should be to find the limitations of the database you are using.
Of course it is also affected by the environmental resources you use.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".