I am currently in the process of changing a website from an sql database into an access database, and I have encountered an error when opening up the database from an external file when doing certain processes. The error i recieve is:
Provider error '80004002'
No such interface supported
/Refs/opendb.asp, line 28
and the code on that page is:-
<!--#include virtual="/Refs/SecureIt.asp"-->
<%
Const adOpenForwardOnly = 0
Const adOpenKeyset = 1
Const adOpenDynamic = 2
Const adOpenStatic = 3
Const adLockReadOnly = 1
Const adLockPessimistic = 2
Const adLockOptimistic = 3
Const adLockBatchOptimistic = 4
Const adUseServer = 2
Const adUseClient = 3
Const adCmdTableDirect = 512
Const adCmdText = &H0001
Dim conn, DataBase, dbProvider
DataBase = Server.MapPath("/db/db.mdb")
Provider = "Microsoft.Jet.OLEDB.4.0"
Set conn = Server.CreateObject("ADODB.Connection")
With conn
.Provider = Provider
' .MODE = &H10
.Open DataBase
End With
%>
If anyone can see what the error is and what is wrong with the code i would be very grateful.
Provider error '80004002'
No such interface supported
/Refs/opendb.asp, line 28
and the code on that page is:-
<!--#include virtual="/Refs/SecureIt.asp"-->
<%
Const adOpenForwardOnly = 0
Const adOpenKeyset = 1
Const adOpenDynamic = 2
Const adOpenStatic = 3
Const adLockReadOnly = 1
Const adLockPessimistic = 2
Const adLockOptimistic = 3
Const adLockBatchOptimistic = 4
Const adUseServer = 2
Const adUseClient = 3
Const adCmdTableDirect = 512
Const adCmdText = &H0001
Dim conn, DataBase, dbProvider
DataBase = Server.MapPath("/db/db.mdb")
Provider = "Microsoft.Jet.OLEDB.4.0"
Set conn = Server.CreateObject("ADODB.Connection")
With conn
.Provider = Provider
' .MODE = &H10
.Open DataBase
End With
%>
If anyone can see what the error is and what is wrong with the code i would be very grateful.