未结束的字符串常量

来源:百度知道 编辑:互助问答吧 时间:2020/08/13 07:14:44
Microsoft VBScript 编译器错误 '800a0409'

未结束的字符串常量

\conn.asp, line 18
--------------------------------------------------------------
conn代码部分
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
Response.Charset="utf-8"
%>
<%
dim db
const DatabaseType="ACCESS"
db="asp/Database/szssdl3465888~-().mdb"
On Error Resume Next
dim ConnStr
dim conn
ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open connstr
If Err Then
err.Clear
Set Conn = Nothing
Response.Write "数据库连接出错,请检查Conn.asp文件中的数据库参数设置"
Response.End
End If
sub CloseConn()
On Error Resume Next
If IsObject(Conn) Then
conn.close
set conn=nothing
end if
end sub
%>