Solved

Convert ADODB to ADO.NET?  Will it provide a big increase in speed?

Posted on 2007-03-20
5
399 Views
Last Modified: 2010-04-14
Visual Studio 2005.  .NET 2005 VB.NET  ASP 2.0

I need to convert some ADODB code to ADO.NET.  What are some good sources that show why ADO.NET is better.  And how to go about converting ADODB to ADO.NET.  The ADODB code is pretty sloply and needs to be cleaned up anyway, so I figure I should also upgrade to ADO.NET.  It is a VB.NET 2.0 Application, but the programmer still used old ADODB.

Like converting ADODB.Recordset to the equivalent in ADO.NET
0
Comment
Question by:Epicmanagement
5 Comments
 
LVL 42

Accepted Solution

by:
dqmq earned 275 total points
ID: 18759208
I would say ADO.NET is a radically different paradigm.  So much so, ADO.NET does not have a recordset equivalent, though it still comes with data providers that are backward compatible with the ADODB objects. So, be prepared for a pretty big learning curve and substantial re-write if you really want to make the leap completely.

A highly recommended source is "ADO.NET 2.0 Step by Step" from Microsoft Press. And some classes--it's a pretty tough transition by the seat-of-your pants.  

0
 

Author Comment

by:Epicmanagement
ID: 18759629
Is it worth doing the conversion.  Is there any performance increase.

I am not new the ADO.NET, I've used it for executing StoredProcedueres and inline SQL, and the code I am working with is not opimized at all.  For example, rather than having stored procedures that accept paramaters, the code has lots of inline sql.  I have to make lots of changes anyway, so I was just wondering if it is also worth converting to .NET.
0
 
LVL 27

Assisted Solution

by:planocz
planocz earned 50 total points
ID: 18759894
You need to get the programmer to upgrade his knowledge  able .NET and ADO's or get a new proprammer.
After being in programming from VB4 to .NET I would never go back to VB6, etc. .Net is the way to go there is alittle time needed for learning.
0
 
LVL 41

Assisted Solution

by:graye
graye earned 175 total points
ID: 18760442
As others have already pointed out, an automatic "conversion" to ADO.Net is probably not a good idea.

There is a significant "paradymn shift" (I hate using management-speak buzzwords) between the "old" way to do things things and the "new" way.   A mere "conversion" doesn't do it.  It's almost always requires a complete re-write.

As for performance... you're probably not gonna like this... No, it's not an improvement

But, that's not all bad... somethings it does very well, but as for "raw database performance"... sorry.   On the other hand, ADO.Net is a blessing for the database backend... you should see a drop in processor/memory load on the database server.

Having said all of that, I'd *still* recommend that you convert (as soon as possible) to VB.Net 2005 way of doing things
0
 
LVL 42

Assisted Solution

by:dqmq
dqmq earned 275 total points
ID: 18762026
>Is it worth doing the conversion.
I would say, estimate the costs, estimate the benefits, then decide.

The good news is that's it's not an all-or-nothing proposition.  You can do a little bit, see how it goes, and then make an informed choice.


 

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.Net - KeyPress Event 4 37
Send SMS from VB via Sierra Wireless Modem 2 22
Loops and updating in SQL Query 9 33
Complex SQL statement in VB.NET 7 16
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question