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
SUMPRODUCT formula for capturing occurrence
Import Outlook 2007 Messages to Access 2007/SQL table including file attachments
Users receive Active X error when opening email attachments
how to get move line through mouse drag in view?
Working Days Calculator
Auto Close procedure
Does sysprep completely clean old network, domain and user settings in XP ?
CreateEventProc error 57017 Event Handler Invalid
Dynamically position and resize textboxes horizontally in reports using Access 2003
Trend Micro CSM and Hyper V