Ask a Question related to ASP Database, Design and Development.
-
MDW #1
ADO Performance Question
Hey there,
I connect to Access 2000 using ASP/ADO (surprise
surprise). Currently, my connection string looks like this:
Set DB = Server.CreateObject("ADODB.Connection")
DBPath = "DBQ=" & server.mappath(strDatabaseLocation)
DB.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " &
DBPath
However, I've also seen this variation as well:
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open DBPath
Is either one of those methods (or another form)
preferable for any reason? Be it speed, support, etc?
MDW Guest
-
Performance Question
"xixi" <dai_xi@yahoo.com> wrote in message news:c0f33a17.0306261139.5b0de317@posting.google.com... There will be an extra access to some of the... -
Question about performance
Hay gang, I have a compound question about MovieClips (MC) in comparison to other classes in Flash. I am noticing a lot of solutions to people?s... -
performance question...
I've done a few tests on code speed in lingo and I reckon there'd be negligible differences in speed either way, unless you're iterating the code a... -
A performance question
you can easily test out the speed of a particular piece of code by including a timer eg tm=the timer repeat with ty=1 to 100000 th=random(22)... -
directio performance question
Hi, I've got what is probably for most of you a very basic question... From what I've read, in solaris, mounting an oracle filesystem with the... -
Aaron Bertrand [MVP] #2
Re: ADO Performance Question
ODBC has a little extra overhead. It's also been deprecated.
See [url]http://www.aspfaq.com/2126[/url] for more information.
Also see the fourth paragraph, under "Summary", in
[url]http://support.microsoft.com/?kbid=222135[/url]
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"MDW" <anonymous@discussions.microsoft.com> wrote in message
news:029901c3bc53$37b98b40$a101280a@phx.gbl...> Hey there,
>
> I connect to Access 2000 using ASP/ADO (surprise
> surprise). Currently, my connection string looks like this:
>
> Set DB = Server.CreateObject("ADODB.Connection")
> DBPath = "DBQ=" & server.mappath(strDatabaseLocation)
> DB.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " &
> DBPath
>
> However, I've also seen this variation as well:
>
> set conn=Server.CreateObject("ADODB.Connection")
> conn.Provider="Microsoft.Jet.OLEDB.4.0"
> conn.Open DBPath
>
> Is either one of those methods (or another form)
> preferable for any reason? Be it speed, support, etc?
Aaron Bertrand [MVP] Guest
-
McKirahan #3
Re: ADO Performance Question
"Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
news:udhnpbFvDHA.3224@tk2msftngp13.phx.gbl...> ODBC has a little extra overhead. It's also been deprecated.
> See [url]http://www.aspfaq.com/2126[/url] for more information.
> Also see the fourth paragraph, under "Summary", in
> [url]http://support.microsoft.com/?kbid=222135[/url]
>
> --
> Aaron Bertrand
> SQL Server MVP
> [url]http://www.aspfaq.com/[/url]
>
>
>
>
> "MDW" <anonymous@discussions.microsoft.com> wrote in message
> news:029901c3bc53$37b98b40$a101280a@phx.gbl...> > Hey there,
> >
> > I connect to Access 2000 using ASP/ADO (surprise
> > surprise). Currently, my connection string looks like this:
> >
> > Set DB = Server.CreateObject("ADODB.Connection")
> > DBPath = "DBQ=" & server.mappath(strDatabaseLocation)
> > DB.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " &
> > DBPath
> >
> > However, I've also seen this variation as well:
> >
> > set conn=Server.CreateObject("ADODB.Connection")
> > conn.Provider="Microsoft.Jet.OLEDB.4.0"
> > conn.Open DBPath
> >
> > Is either one of those methods (or another form)
> > preferable for any reason? Be it speed, support, etc?
I now use:
Set objADO = CreateObject("ADODB.Connection")
objADO.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.MapPath(database.mdb)
Actually, I use:
Const cDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
Const cMDB = "database.mdb"
Set objADO = CreateObject("ADODB.Connection")
objADO.Open cDSN & Server.MapPath(cMDB)
Watch for word-wrap.
McKirahan Guest



Reply With Quote

