Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27208

Takes too long for TableManager to Update in vb 2010 Express

$
0
0
Using VB 2010 Express, Windows Forms, and a SQL Server 2008 database

My Prospect Table has many columns.

When I click the Finished button with the code below, it takes 6 seconds for the "UpdateAll" to complete.

The DeiDatabaseDataSet2 has 7 Tables; I use 4 of these tables; but I only make changes to 2 of these tables(the ones shown below).

I have another dataset with 3 tables which I use to search against but make no changes to any of these tables.

I have bound controls to a total of 7 tables on my Windows Form

undefined Code:
  1. Me.Validate()
  2.             Me.DealershipTableBindingSource.EndEdit()    '####
  3.             Me.ProspectTable1BindingSource.EndEdit()    '####
  4.             Me.TableAdapterManager.UpdateAll(Me.DeiDatabaseDataSet2)
  5.             Me.DeiDatabaseDataSet2.AcceptChanges()
  6.             Cursor = Cursors.Default


Why does it take so long for the UpdateAll to complete?

Viewing all articles
Browse latest Browse all 27208

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>