Microsoft
Software
Hardware
Network
Question : Connection String for MS Access database outsiide wwwroot
I am writing in asp with MS Access. Need to move to a new server.
In my old server, database files are stored within wwwroot, so the following connection string works:
Set Conn = Server.CreateObject("ADODB
.Connectio
n")
Conn.Open "PROVIDER=MICROSOFT.JET.OL
EDB.4.0;DA
TA SOURCE=" & Server.MapPath("_data/File
s.mdb")
In the new server, I need to store database outside wwwroot. Any suggestion how to modify the connection string?
Many thanks,
Answer : Connection String for MS Access database outsiide wwwroot
You have to hard-code the reference to the MDB file in your connection string, e.g. H:\databases\myDB.mdb (you can't use server.mappath)
The server admin will have to set up a drive mapping and set permissions.
Random Solutions
How do I create a new MS Access file when copying linked MSQL Tables to a local MS Access table?
E_ACCESSDENIED error when trying to import sites into new site collection with stsadm
check date plus 90 days
How to set AutoIncrement Property of a field ?
The disk is offline because of policy set by an administrator
FTP from Access 2000?
Query Date/Time from Access
How do I get correct calculations using Dcount in a Report that is based on a filtered table?
Concatenate in Query with Leading Zero
winxp unstable