Dear experts,
I'm a newbie to vbscript. Currently, I am trying to connect to an Access
Database using DSN-less connection. I tested to run the script, the following
error message prompt. I have added my own workgroup to the .mdw file. I
manage to open the access database manually, but not through the script.
Error Type:
Microsoft JET Database Engine (0x80004005)
You do not have the necessary permissions to use the
'C:\Inetpub\wwwroot\SeokBee\Leave\DB\leaves.mdb' object. Have your system
administrator or the person who created this object establish the appropriate
permissions for you.
The script that I wrote is as follow:
<%
dim dbConnection, mdbFilePath, DSNtest, strConnection
strConnection= "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &
Server.MapPath("/leave/DB/leaves.mdb")
Set dbConnection = Server.CreateObject("ADODB.Connection")
dbconnection.open strConnection
%>
Please assist me on the solving this problem. Many thanks in advance.
Regards,
Seok Bee