Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Question in regarding to UpdateAdapter with BatchSize Expand / Collapse
Posted Thursday, January 3, 2013 7:56 AM


Group: General Forum Members
Last Login: Thursday, July 9, 2015 12:38 PM
Points: 160, Visits: 438
My 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:Completed	exec 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!

Post #1402396
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse