WINDOWS 2003 SERVER, 支持ASP 和ACCESS.但是就是連不上數據庫啊. 不曉的為什麽
ACCESS 做的數據庫放在這個文件裏sundx.asa
連接的CODE 是這樣寫的:
sundxDB="admin/sundx.asa"
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(""&sundxDB&"")
On Error Resume Next
Set conn = Server.CreateObject("ADODB.Connection")
conn.open connstr
If Err Then
err.Clear
Set Conn = Nothing
Response.Write "Cannot connect to Database, Please check the database in conn.asp file"'
Response.End
End If
但是就是出現ERROR MESSAGE "Cannot connect to Database, Please check the database in conn.asp file", 請問如何解決啊? 先謝謝了!
求救: 關於ASP連到ACCESS數據庫的問題
所有跟帖:
•
try hardcoded connection string.
-愛我家-
♂
(199 bytes)
()
12/21/2005 postreply
08:19:54
•
回複:try hardcoded connection string.
-24149-
♀
(43 bytes)
()
12/22/2005 postreply
10:39:24