Question in regarding to UpdateAdapter with BatchSize

  • My VB.net code first retrieves data from database, use the fill method to fill to a datatable, makes changes to datatable, then uses DataAdapter.Update to send data back to database in batch mode, where batchsize is set to 10. When I look at SQL profiler I see something like this:

    RPC:Completedexec sp_reset_connection

    Audit Login...

    RPC:Completed exec dbo.IMOC_UpdateProperties ...

    ...

    Audit Logout ...

    Now, what I was expecting is... the

    "RPC:Completed exec dbo.IMOC_UpdateProperties ..."

    should only be repeated for maximimum of 10 times (set batch size) within each Login & Logout block. But instead I see more than 10 times...Is this the right behavior?

    Thank You!

Viewing 0 posts

You must be logged in to reply to this topic. Login to reply