Multiple insert statements in single ODBC ExecuteNonQuery (C#)

后端 未结 3 1018
广开言路
广开言路 2020-12-06 19:23

I\'m inserting multiple rows into a DB, and joining them together in an attempt to improve performance. I get an ODBCException telling me my SQL syntax is wrong. But when I

3条回答
  •  心在旅途
    2020-12-06 19:36

    It cannot handle batching (using ; to separate multiple statements) since this would require two way communication. I am afraid you have to do it in a loop and go to database multiple times.

    In fact I have never been able to use batching with any managed provider.

提交回复
热议问题