Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / May 2006



Tip: Looking for answers? Try searching our database.

Q: DataAdaptor Update

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
G .Net - 25 May 2006 15:42 GMT
Hi

I was wondering if anybody could give me some advice on why I feel that the
updates in my application feel "slow".

The application I've written downloads from an SQL Server Database, stores
this data in a DataSet, values are changed and then I use the Update command
to write any changes back to the database.

This all works fine. However, this updating takes longer than I expected.
I've noted online that

"Note that an adapter will update the database row by row (i.e. one UPDATE
command will be sent for each modified row), this might be slow if there are
many rows to be updated."

Is there any way to avoid this?

In addition, I've just the CommandBuilder to configure the DataAdaptors.
Will this cause a significant delay? If so, how can I get round it?

Any help will be most appreciated.

Thanks in advance

G
LinasB - 26 May 2006 14:17 GMT
> In addition, I've just the CommandBuilder to configure the DataAdaptors.
> Will this cause a significant delay? If so, how can I get round it?

Yes you are right. CommandBuilder is very bad solution for that.
You must configure DataAdapter manually.
Give UPDATE, INSERT, DELETE commands and parameters manually.
G .Net - 26 May 2006 16:10 GMT
Hi

Am I right in thinking that the delay is generated because the command
builder is called every time an update is made?

G

>> In addition, I've just the CommandBuilder to configure the DataAdaptors.
>> Will this cause a significant delay? If so, how can I get round it?
>
> Yes you are right. CommandBuilder is very bad solution for that.
> You must configure DataAdapter manually.
> Give UPDATE, INSERT, DELETE commands and parameters manually.
LinasB - 26 May 2006 17:00 GMT
> Am I right in thinking that the delay is generated because the command
> builder is called every time an update is made?

I don't know, but without builder, update/insert is much faster.
G .Net - 29 May 2006 10:42 GMT
Hi Linas

Is this because the command builder adds "unnecessary" code i.e. it isn't
particularly efficient?

G

>> Am I right in thinking that the delay is generated because the command
>> builder is called every time an update is made?
>
> I don't know, but without builder, update/insert is much faster.
LinasB - 31 May 2006 15:50 GMT
> Is this because the command builder adds "unnecessary" code i.e. it isn't
> particularly efficient?

I think, that you can see what builder done for your update.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.