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
SQL Count Query In a Main Query
UTF-8 / ASP Problem - Foreign Characters from SQL 2008
Compaq Presario SR5010NX Desktop PC
How do you check the current date format of an SQL Server 2005 database?
Query to find matching patterns in a table
how to eliminate double input of a value
Using a Field from a Table as part of the file name when saving in a module
Desktop app registry and program files access under Vista and Windows7
How to change Windows 7 pre-login background image
Animationed GIFs don't animate in Outlook 2007