ASP在本地连接不上数据库的问题
从ftp下下来的网站为什么在本地运行不了数据库?
代码如下?
----------
<%
Dim Conn,ConnStr
On Error Resume Next
ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/Database/#HH_HongNiang#.mdb")
Set Conn=Server.CreateObject("ADODB.CONNECTION")
Conn.open ConnStr
Response.Write(ConStr) <!--If Err Then
Err.Clear
Set Conn = Nothing
Response.Write "数据库连接出错!" 【走到这里就停了】
Response.End
End If Sub RsClose()
Rs.Close
Set Rs=Nothing
End Sub '关闭Rss记录
Sub RssClose()
Rss.Close
Set Rss=Nothing
End Sub '关闭Conn数据源
Sub ConnClose()
Conn.Close
Set Conn=Nothing
End Sub '取得客户端IP
Function GetIP()
UserIp = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If UserIp = "" Then UserIp = Request.ServerVariables("REMOTE_ADDR")
GetIp = UserIp
End Function
%>
<!--#Include File="Safe.Asp"-->
<!--#Include File="ConFig.Asp"--> -->
---------------------------
谁能翻译一下啊?