Ask a Question related to ASP Database, Design and Development.
-
Aaron Bertrand - MVP #1
Re: ADODB.Connection
> Is there an advantage of one of these over the other, other than not
havingNo. However, the advantage isn't just about being oblivious to the path at> to know the physical path?
>
> strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> Server.MapPath("/_db/my.mdb") & ";"
> strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Date
> Source="d:\inetpub\wwwroot\_db\my.mdb;"
step 1, it's also about being immune to changes to the path indefinitely.
With the first method, your ISP could change the folder structure of its
webroot 80 times, and you wouldn't be affected...
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Aaron Bertrand - MVP Guest
-
.NET returning ADODB.Connection to ASP
Could someone tell me if I were to return a ADODB.Connection from a .NET dll to ASP, should I be able to use that connection? My .net dll... -
ADODB Connection Question
Hi All Just IYHO, which is better: METHOD 1 ========= Creating the ADODB connection obejct at the beginning of an ASP page in an include... -
ADODB.Connection error '800a0046'
I am receiving the following error: ADODB.Connection error '800a0046' Permission Denied Here is my connection string on my web page: <% Dim... -
ADODB Connection
Could anybody tell me please what the "1,2" refers to in the last line of this code and where I can get a list of the parts to this '.open'... -
The specified module could not be found. (ADODB.Connection)
Hi I am getting the follwoing error message Server object error 'ASP 0177 : 8007007e' Server.CreateObject Failed /BI... -
Roland Hall #2
ADODB.Connection
Is there an advantage of one of these over the other, other than not having
to know the physical path?
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.MapPath("/_db/my.mdb") & ";"
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Date
Source="d:\inetpub\wwwroot\_db\my.mdb;"
--
Roland
This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
Roland Hall Guest
-
McKirahan #3
Re: ADODB.Connection
"Roland Hall" <nobody@nowhere> wrote in message
news:ucR3ZgDwDHA.2072@TK2MSFTNGP10.phx.gbl...having> Is there an advantage of one of these over the other, other than not> to know the physical path?
>
> strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> Server.MapPath("/_db/my.mdb") & ";"
> strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Date
> Source="d:\inetpub\wwwroot\_db\my.mdb;"
>
> --
> Roland
>
> This information is distributed in the hope that it will be useful, but
> without any warranty; without even the implied warranty of merchantability
> or fitness for a particular purpose.
>
Nope; MapPath() "Returns the full physical path ...".
Note, you mistyped "Date Source=" above.
McKirahan Guest
-
Bob Barrows #4
Re: ADODB.Connection
Roland Hall wrote:
> Is there an advantage of one of these over the other, other than not
> having to know the physical path?
>
> strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> Server.MapPath("/_db/my.mdb") & ";"
> strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Date
> Source="d:\inetpub\wwwroot\_db\my.mdb;"
I suppose there might be a nanosecond or two saved by not having to run the
MapPath function, but ...
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Roland Hall #5
Re: ADODB.Connection
"Aaron Bertrand - MVP" wrote:
at> having> > Is there an advantage of one of these over the other, other than not>> > to know the physical path?
> >
> > strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> > Server.MapPath("/_db/my.mdb") & ";"
> > strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Date
> > Source="d:\inetpub\wwwroot\_db\my.mdb;"
> No. However, the advantage isn't just about being oblivious to the pathGood answer. I had seen quite a few people use MapPath and I usually don't> step 1, it's also about being immune to changes to the path indefinitely.
> With the first method, your ISP could change the folder structure of its
> webroot 80 times, and you wouldn't be affected...
so I wondered what the benefit would be and this is obviously a good reason
to use it.
Thank you.
--
Roland
This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
Roland Hall Guest
-
Roland Hall #6
Re: ADODB.Connection
"McKirahan" wrote:Ah, the infamous typo. Somehow I have a feeling it won't be my last.> "Roland Hall" wrote:> having> > Is there an advantage of one of these over the other, other than not>> > to know the physical path?
> >
> > strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> > Server.MapPath("/_db/my.mdb") & ";"
> > strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Date
> > Source="d:\inetpub\wwwroot\_db\my.mdb;"
> Nope; MapPath() "Returns the full physical path ...".
>
> Note, you mistyped "Date Source=" above.
Thank you.
Roland Hall Guest
-
Roland Hall #7
Re: ADODB.Connection
"Bob Barrows" wrote:
the> Roland Hall wrote:>> > Is there an advantage of one of these over the other, other than not
> > having to know the physical path?
> >
> > strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> > Server.MapPath("/_db/my.mdb") & ";"
> > strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Date
> > Source="d:\inetpub\wwwroot\_db\my.mdb;"
>
> I suppose there might be a nanosecond or two saved by not having to runI thought it might have some overhead but didn't think it would be> MapPath function, but ...
>
> Bob Barrows
traumatic, even if you made a lot of calls to the database.
Thank you.
Roland Hall Guest



Reply With Quote

