从该ASP的数据库连接语句中如何查看数据库密码?急待解决,谢谢!
<%@LANGUAGE="VBScript.Encode" CODEPAGE="936"%>
<!--#include file="Config.asp"-->
<!--#include file="Function.asp"-->
<%
Response.Addheader "Content-Type","text/html; charset=gb2312"
dim conn,connstr,Data,FalseType,TrueType,nowdate
TrueType= "True"
FalseType= "False"
nowdate = "Now()"
Data="DataBase/"&DataName&""
on error resume next
Set conn = Server.CreateObject("ADODB.Connection")
connstr="dbq="+server.mappath(Data)+";defaultdir=;driver={microsoft access driver (*.mdb)};uid=;password="&passwovd&";"
conn.Open connstr
If Err Then
err.Clear
Set Conn = Nothing
Response.Write "<div style='margin:100px;font-size:14px;text-align:center'>数据库连接出错,请检查数据库名称及路径是否正确。</div>"
Response.End
End If
sub CloseConn()
conn.close
set conn=nothing
end sub
%>
cinfig代码为:
<%
Dim SiteTitle,Gover,cnzz,Lelogo,SiteUrl,email,tel,address,SitePath,DataName,SqlNo,SiteUp,Sitekeywords,Sitedescription,Css,SiteTcp,BadWord1,seo,bookoff,Plsh,fabu,Certif,Npass,qqline
SiteTitle="网站管理系统"
Lelogo="images/logo.jpg"
SiteUrl="www.webrui.net"
email="XXXi@XXX.com" '联系邮件
tel="010-88888886" '联系电话
address="北京朝阳路" '联系地址
SitePath="/"
DataName="#Web_rui_s_Base.mdb" '数据库名称
SqlNo="0" '数据库类型
SiteUp="upload"
Sitekeywords="网站系统"
Sitedescription="学校网站系统"
SiteTcp="ICP备00000000号"
BadWord1="bookoff="0"
Plsh="0"
fabu=""
Certif="webrui"
Npass="123456"
Gover="0"
Cnzz=""
qqline=""
%>
------解决方案--------------------connstr="dbq="+server.mappath(Data)+";defaultdir=;driver={microsoft access driver (*.mdb)};uid=;
password="&passwovd&";"
这个里面
------解决方案--------------------试试Npass="123456"