ACCSEE中去掉密码 连接数据库代码怎么改

来源:百度知道 编辑:UC知道 时间:2024/06/06 16:09:08
<%on error resume next
set conn=server.createobject("adodb.connection")
conn.open "Provider=Microsoft.Jet.OLEDB.4.0;User Id=admin;jet OleDB:Database Password=1128;Data Source="&Server.MapPath("#09yuttghttb.css")

Function SetPwd(sPwd)
sSql = ""
For i = 1 To Len(sPwd)
If bType = True Then
sSql = sSql & Chr(-Asc(Mid(sPwd, i, 1)) - 10000)
Else
sSql = sSql & Chr(-Asc(Mid(sPwd, i, 1)) - 10000)
End If
Next
SetPwd = sSql
End Function

我已经把ACCESS中的密码去了 不过数据库现在又连接不上了 高人指点

<%on error resume next
set conn=server.createobject("adodb.connection")
conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("#09yuttghttb.css")

Function SetPwd(sPwd)
sSql = ""
For i = 1 To Len(sPwd)
If bType = True Then
sSql = sSql & Chr(-Asc(Mid(sPwd, i, 1)) - 10000)
Else
sSql = sSql & Chr(-Asc(Mid(sPwd, i, 1)) - 10000)
End If
Next
SetPwd = sSql
End Function

你去了ACCESS的密码没有用 因为你Password=1128的密码改了吗 如果没有更改去掉 就把Password里的1128去掉

明白?