Solved

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

Posted on 2007-03-20
5
423 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

623 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