conn.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:1k
源码类别:
手机WAP编程
开发平台:
ASP/ASPX
- <%
- '***************ASPSecurity 连接数据库*******************
- ' Copyright 2006
- ' Create:2006-1-14
- ' Update:2006-1-15
- '********************************************************
- 'on error resume next
- Set Conn= Server.CreateObject("ADODB.Connection")
- Conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(DataFile)
- Conn.Open
- If Err Then
- err.Clear
- Set Conn = Nothing
- Response.Write("<meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312"" /><div style='font-size:12px;font-weight:bold;border:1px solid #006;padding:6px;background:#fcc'>数据库连接出错,请检查连接字串!</div>")
- Response.End
- end if
- %>