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
Author
Message
Posted Thursday, January 3, 2013 7:56 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, December 19, 2014 3:08 PM
Points: 156, Visits: 417
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: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