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
Has anyone run these scripts
Random numbers in VB.net not random...weird?
Can't view *.mht/*.mhtml files
Export Access Report(S) to Section(S) in Word
DPM Hot Fix KB970868 does NOT resolve Issue 7
Set SQL Results to a Variable
Update a table based on the FIRST record of a join (mySql)
Web Browser Control (AxSHDocVw) & sendkeys.. won't work!
Your user accounts are unexpectedly locked and event ID 12294 is logged in Windows Server 2003?
access 2007 frontend sql server 2008