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 to improve the performance of conditional formatting
How do I replace RunCommand acCmdImport in Access 2007?
Add a grouping to a report between page header and first grouping
export specific contacts in outlook 2007 to csv
VB program connecting to Access DB - arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
Pivot Table in Excel - refresh button disabled - why????
winlogon log
Basic SQL question
Cannot joining a Windows server 2008 domain from xp computer
How can I convert or cast data in a query to an Access Database?