Fejl ved dbconnection
Jeg får følgende fejl når jeg forsøger at forbinde til en Access db:Technical Information (for support personnel)
Error Type:
ADODB.Connection.1 (0x800A0BB9)
The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.
/filer/asp/dbconn.asp, line 5
Browser Type:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Page:
GET /default.asp
Time:
Saturday, April 12, 2008, 5:28:56 PM
More information:
Sun ONE Active Server Pages Support
Hvad betyder ovenstående helt præcist?
Koden ser ud som følger:
<%
Set connection = Server.CreateObject ("ADODB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath ("/mdb_files/data/db.mdb")
Function openConn()
connection.Open DSN
End Function
Function closeConn()
connection.Close
End Function
%>