sqlDataAdapter

  • Thread starter Thread starter Analizer1
  • Start date Start date
A

Analizer1

How Can i set SqlData Adapter to update like a Batch Update

for instance: I have 10,000 rows that have changed
when i call SqlDataAdapter.Update(table)
it seems like its updating 1 row at a time

Tks
 
Analizer1 said:
How Can i set SqlData Adapter to update like a Batch Update

for instance: I have 10,000 rows that have changed
when i call SqlDataAdapter.Update(table)
it seems like its updating 1 row at a time

You set the property UpdateBatchSize of the SqlDataAdapter to the number
of rows you want to update at a time. Note that this property is new in
version 2.0 of the Framework. It can't be done in previous versions.
 
Thanks Alberto

Alberto Poblacion said:
You set the property UpdateBatchSize of the SqlDataAdapter to the number
of rows you want to update at a time. Note that this property is new in
version 2.0 of the Framework. It can't be done in previous versions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top