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 do I add an equal to or greater than sign to a text box
Group policy- prevent to save on the desktop
The specific error is:0x8007052e: Logon failure: unknown user name or bad password. Verify that the task's Run-as name and password are valid and try again."
SQL Query
Why does Update bring a lot of Null in the traget table ?
Receiving error when submitting data to SQL Server through asp.net vb
Changing or retaining an update Parameter value in a gridview
Need to update first booking of the day for each person within a time period
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?