Re: ADO from DAO
- From: "news.microsoft.com" <billva@xxxxxxxxxxxxxxx>
- Date: Mon, 30 May 2005 15:23:26 -0700
We have seen from past experience that ADO can be slower than DAO in many
respects. ADO is an "OSFA" interface while DAO is a JET/Access database
specific data interface. However, at this time you should consider moving
your programs and skills to .NET instead of to ADO classic. Will .NET be any
faster? Possibly not--but in my experience, most performance issues are
caused by design issues--not which data access interface you choose.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Lhunt" <Lhunt@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8163A388-62DE-4510-AADD-3C5E4EF4FA4F@xxxxxxxxxxxxxxxx
>I have done the preliminary conversion from DAO to ADO on MSACCESS (350
>megs
> in 5 tables) and it is much slower in multi-user (3 workstations) on a
> Wndows
> 2000 server.
>
> I tried adUseClient and it was worse
>
> QUESTION: There are so many variables to adjust I am sure there is an
> Optimized setup. Which properties should be changed to optimize or even
> improve the speed.
>
> Set DB = New ADODB.Connection
> DB.Provider = "Microsoft.JET.OLEDB.4.0"
> DB.Properties("Data Source") = DbLoc$ & "\" & DataBaseName$
> '=====================================
> '== Lock Rows with Locking Mode = 1
> '=====================================
> DB.Properties("Jet OLEDB:Database Locking Mode") = 1
> ' == DB.Properties("RecordSource") = adCmdTable
> DB.CursorLocation = adUseServer
> DB.Open
>
> Set PatDATA = New ADODB.Recordset
> PatDATA.Open "Visits", DB, adOpenstatic, adLockOptimistic
>
> This has 36000 rows.
>
> patdata.findfirst ("[PT_ID] = " & pt_NUM
>
> This will take 30 - 40 seconds to pull up.
>
> Similar code in DAO is up in seconds?
>
>
.
- References:
- ADO from DAO
- From: Lhunt
- ADO from DAO
- Prev by Date: Re: Read from one, write into another data source
- Next by Date: ConnectionRead Timeout Problem
- Previous by thread: ADO from DAO
- Next by thread: Re: For Stephen Howe on SQLOLEDB Provider Proble
- Index(es):
Relevant Pages
|
|