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
Solved

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

Posted on 2007-03-20
5
405 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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