Forums
This topic is locked
Server Mappath
Posted 05 Nov 2001 22:31:53
1
has voted
05 Nov 2001 22:31:53 Francis Lnogpre posted:
I need help. I am trying to use server.mappath for my connections: "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("/Site/DB/school.mdb" & ";"All the site is in a folder called "Site".
On my computer, everything works fine. Even if I change the location my "Site" folder on the server, the site still works. But when I try to upload it on a distant server, the connections to the databases are not working. Any advice would be appreciated.
Thank you
Arezz
Replies
Replied 06 Nov 2001 16:35:51
06 Nov 2001 16:35:51 Joel Martinez replied:
the best thing to do in this situation, is to see what path is on your remote server... just do this on a page in the same directory as the calling page:
response.write(Server.MapPath("/Site/DB/school.mdb")
and see if that path is correct... trial and error baby!!
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
response.write(Server.MapPath("/Site/DB/school.mdb")
and see if that path is correct... trial and error baby!!
Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
Replied 27 Aug 2002 12:23:51
27 Aug 2002 12:23:51 andre maas replied:
Yo,
Try this one:
"DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("Site/DB/school.mdb" & ";"
Sukses,
Masor
Try this one:
"DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("Site/DB/school.mdb" & ";"
Sukses,
Masor