posted 20 years ago
If your doing mass updates/inserts it is similar. For an update statement, you'll have to get the modified row count and add it a counter. Then you'll have to commit if the counter is 10,000 or greater. You won't be able to hit it exactly at 10,000 anymore. For the mass insert it must have a select statement part. Copy off the select statement part and modify it to a count(*), run it to get the row count and add it to the counter.
If this is not good enough, then you'll have to take extra effort to control how many rows are updated/inserted at a time. This may prove hard to do and the solution may be depenent on the specific driver or database you are using.