On 20 Apr 2007 in macromedia.dreamweaver.appdev, Piers wrote:
> I wouldn't use Server.MapPath for a DB conn. The server
will have to
> calculate the path for the db every time a connection is
made. I
> (people please correct me on this) feel it would be
better to spend
> a bit of time and find the path to the DB at the start,
and hard
> code it.
That's the way I do it.
> They're not gonna move your db without telling you!
Wanna bet?
More specifically - the hosting provider won't change /your/
file
structure. But they may change theirs, which could result in
a file path
like D:\clients\username1234\database\mydb.mdb changing to
r:\newserver
\newpath\newusername\databases\mydb.mdb Hopefully they would
notify you
in advance, though.
--
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php