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
Excel Chart copying
Outlook 2007 search
Need to know how to set a cell to blank when the value is an integer like relace 0 and 0.00 with a blank
How to avoid page refresh on a button click
Changing or retaining an update Parameter value in a gridview
Live Communications Server 2005 RTC Database Upgrade
Import HTML into Outlook 2007
Running runas from batch script to launch remote support does not work however from Start > Run there is no problem...any ideas how to make this work?
Conditional Formatting in a ListBox (Access :: VBA)
Autodiscover service