Floodster
Technical User
- Jan 28, 2005
- 204
Hi,
I'm building a site for someone & at the moment I'm hosting it on my local PC.
My problem is when I upload to the server it can't find the database as I have hard coded the directory. I know that somehow server.mappath can help but I'm unsure of the coding.
I have included my code below that I would like to be able to substitute.
dim objConn, objRS
set objConn=server.createobject("adodb.connection")
objConn.open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Inetpub\
If someone could help I would really appreciate it as I'm pulling my hair out.
Cheers.
I'm building a site for someone & at the moment I'm hosting it on my local PC.
My problem is when I upload to the server it can't find the database as I have hard coded the directory. I know that somehow server.mappath can help but I'm unsure of the coding.
I have included my code below that I would like to be able to substitute.
dim objConn, objRS
set objConn=server.createobject("adodb.connection")
objConn.open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Inetpub\
If someone could help I would really appreciate it as I'm pulling my hair out.
Cheers.