PC Review


Reply
Thread Tools Rate Thread

ADO UpdateBatch

 
 
David Browne
Guest
Posts: n/a
 
      24th Jul 2003

"Sal DiStefano" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> I am looking to see how others have approached this. I have a large VB6
> codebase using ADO. in most places we used updatebatch to update our
> recordsets.
> As I am looking to move to .NET and I look at ADO.NET I don't see
> equivilent functionality to the update batch method. I see that I now have
> to create update,insert,delete and select commands for my interactions

woth
> the database. I can use a dataset and dataAdapter or use SQLCommands, etc
> but it just is a whole lot more code.
> anyone have a pointer to something I'm missing here?
>


The key object you're missing is the CommandBuilder.
ADO "figured out" the insert update and delete commands based on the row
metadata.

In ADO.NET this job is done by the CommandBuilder.

Just attach a CommandBuilder to your DataAdapter, and you can update
DataSets without coding DML statements, just like in ADO.

David


 
Reply With Quote
 
 
 
 
Sal DiStefano
Guest
Posts: n/a
 
      24th Jul 2003
Hi

I am looking to see how others have approached this. I have a large VB6
codebase using ADO. in most places we used updatebatch to update our
recordsets.
As I am looking to move to .NET and I look at ADO.NET I don't see
equivilent functionality to the update batch method. I see that I now have
to create update,insert,delete and select commands for my interactions woth
the database. I can use a dataset and dataAdapter or use SQLCommands, etc
but it just is a whole lot more code.
anyone have a pointer to something I'm missing here?

Thanks

Sal


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AddNew and UpdateBatch in ADO Tony29 Microsoft Access VBA Modules 0 16th Jul 2008 02:24 PM
Simulate UpdateBatch in .Net 2.0 Steven Microsoft ADO .NET 0 10th Jan 2006 09:30 AM
How to implement UpdateBatch.. with XML DotNet ian mason Microsoft ADO .NET 1 17th Apr 2005 02:48 PM
UpdateBatch Ado vb6 in VB DotNet Giovanni pepe Microsoft Dot NET 0 22nd Oct 2004 12:56 PM
How do I UpdateBatch? Jcasual Microsoft Access Form Coding 1 7th Nov 2003 01:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:38 AM.