Re: DAO vs ADO
- From: "aaron.kempf@xxxxxxxxx" <aaron.kempf@xxxxxxxxx>
- Date: 5 Jan 2007 08:57:16 -0800
I disagree with your analysis of DAO vs ADO.
for starters, MDB is a DEAD FORMAT, anyone that uses it anywhere should
be fired and then spit upon.
and try comparing that to an Access Data Project and ADO
we don't have DBAs; you _ARE_ the DBA
if you don't know enoug about SQL to build a database from scratch then
you shouldn't be a programmer
-Aaron
Michel wrote:
wait !!! before i start a flame war :-)
when i reread the below line i thought it might be interpreted the wrong way
however this requires
skills that most VB proggers do not posess
With this line i actually mean that not all VB ( or C# , J# etc etc )
coders have enough knowledge of SQL server to perform these tasks . That`s
why we have Dba`s .
regards
Michel
"Michel Posseth [MCP]" wrote:
DAO is specially optimized for ACCESS ( Native )
ADO is just a uniform way of acessing datasources through a provider
so they can`t be compared in this way
And for .Net they are both Obsolete so irrelevant ( DAO was / is even
obsolete for VB6 )
As we are here in microsoft.public.dotnet , we do it now the recomended way
import all data to a SQL 2005 MDF with SMS , now create T-SQL query`s , and
now analyze this query in the database engine tuning advisor , apply al
recomendations , now run this query from your VB.Net application ( with the
sql native client provider )
what do you see now ?
You wil probably see that the access database performance is blown away and
we ar not even at max , cause we could also create SP`s , indexed views ,
create functions etc etc to do some final tuning , however this requires
skills that most VB proggers do not posess
regards
Michel
"Alan Welsford" wrote:
ADO Code 66 Seconds
Set dcndb = New ADODB.Connection
dcndb.Provider = "Microsoft.Jet.OLEDB.4.0"
dcndb.ConnectionString = "Data Source=" + dtbs$
dcndb.Open
Set rsUsers = New ADODB.Recordset
rsUsers.Open Sql$, dcndb, adOpenForwardOnly, adLockReadOnly
DAO Code 20 Seconds
Set rDb = DBEngine.Workspaces(0).OpenDatabase(dtbs$)
Set rsUsers = rDb.OpenRecordset(Sql$)
*** Sent via Developersdex http://www.developersdex.com ***
.
- References:
- DAO vs ADO
- From: Alan Welsford
- RE: DAO vs ADO
- From: Michel Posseth [MCP]
- DAO vs ADO
- Prev by Date: Re: Thread.Sleep question
- Next by Date: Re: DAO vs ADO
- Previous by thread: Re: DAO vs ADO
- Next by thread: Re: DAO vs ADO
- Index(es):
Relevant Pages
|