HOME > ASP > ASP Forum > ติดต่อฐานข้อมูลไม่ได้มัน error แก้ยังไงบอกด้วยคับMicrosoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x1534 Thread 0x
ติดต่อฐานข้อมูลไม่ได้มัน error แก้ยังไงบอกด้วยคับMicrosoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x1534 Thread 0x
<%
On Error Resume Next '*** Not Show ASP Error ***'
Dim Conn1
Set Conn1 = Server.Createobject("ADODB.Connection")
Conn1.Open "DRIVER=Microsoft.ACE.OLEDB.12.0;Data;DBQ=" & Server.MapPath("xx.adp"),"" , ""
If Err.Number <> 0 Then
Response.write("(Microsoft Access Driver) Database cannot connect Error = "&Err.Description&"<br>")
Else
Response.write("(Microsoft Access Driver) Database connected.<br>")
End If
Conn1.Close()
Set Conn1 = Nothing
%>