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
re: Hosting website with IIS 6
How do i protect my excel woksheet information copy and past it in another worksheet? I already protected the worksheet and cells but copying information?
Dataset - Column value - need correct syntax
Database backup using stored proc
Windows Phone Dialer not Working Right With XP
moving documents and settings from c to d drive
Format the Expression with Hyphen
Backup and restore of Win2k Server to a different machine
Use multi parameters in query criteria
Can I write a number extracting algorithm