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