Re: Efficiency Question - Dlookup vs ADO cmd execution
- From: "Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
- Date: Mon, 31 Oct 2005 12:04:56 -0500
Absolutely not: the difference beetwen ADO and ADO.NET is so big that
migrating them first to ADO objects won't make things easier at all. Doing
this will only be a pure waste of time.
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF
"Chris Strug" <hotmail@xxxxxxxxxxxxxx> wrote in message
news:unnktxj3FHA.3296@xxxxxxxxxxxxxxxxxxxxxxx
> "Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
> wrote in message news:%237EBa3i3FHA.1416@xxxxxxxxxxxxxxxxxxxxxxx
>> Most of the work is done on the SQL-Server side; so usually there will be
>> no real difference between these two. You might gain a little
>> performance when using a stored procedure or a precompiled Select
>> statement but unless you are on a very stressed SQL-Server, you shouldn't
>> mind about these little differences most of the time. To make sure, you
>> can take a look with the SQL-Server Profiler.
>>
>> However, this doesn't mean that there are no possibility of achieving a
>> greater performance and you should always take a deep look at the design
>> on a regular basis. For example, if an index is missing for a critical
>> field, then both the DLookUp and the Select statement will resolve to a
>> lengthy table scan on the SQL-Server.
>>
>> For the future, classical VB is dimmed in favor of .NET, so there is no
>> point of changing these DLookUp or to migrate to a stand-alone VB
>> application if your concern is portability.
>>
>> --
>> Sylvain Lafontaine, ing.
>> MVP - Technologies Virtual-PC
>> E-mail: http://cerbermail.com/?QugbLEWINF
>>
>>
>
> Thanks for that - though I would have thought that changing them to ADO
> command objects would certainly have made migration to a VB.net client
> easier...?
>
> Anyway, thanks for taking time to help.
>
> Regards
>
> Chris.
>
.
- References:
- Efficiency Question - Dlookup vs ADO cmd execution
- From: Chris Strug
- Re: Efficiency Question - Dlookup vs ADO cmd execution
- From: Sylvain Lafontaine
- Re: Efficiency Question - Dlookup vs ADO cmd execution
- From: Chris Strug
- Efficiency Question - Dlookup vs ADO cmd execution
- Prev by Date: Re: Efficiency Question - Dlookup vs ADO cmd execution
- Next by Date: concatenate date and time
- Previous by thread: Re: Efficiency Question - Dlookup vs ADO cmd execution
- Next by thread: concatenate date and time
- Index(es):
Relevant Pages
|
Loading