access转换sql数据库后进不了后台,急急急

来源:百度知道 编辑:UC知道 时间:2024/09/28 08:43:29
if FoundErr<>True then
password=md5(password)
set rs=server.createobject("adodb.recordset")
sql="select * from Admin where password='"&password&"' and username='"&username&"'"
Response.Write sql
rs.open sql,conn,1,3
if rs.bof and rs.eof then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>用户名或密码错误1!!!</li>"
else
if password<>rs("password") then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>用户名或密码错误2!!!</li>"
else ...
数据库是access转换过来的 前台界面那都没问题可是后来一直进不去 用户名错误 sql输出的语句:select * from Admin where password='7a57a5a743894a0e' and username='admin' 和后台的一样 在查询分析器里就能查到数据,检查错误类型为:常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x2c64 Thread 0x2f2c DBC 0x18ea084 Jet'。 在网上找了一天了那些做法都没有解决 现在只有请教高人了最好来点实际的,急急急

access数据库转成Ms SQL Server

那数据库,连接都改了吗

Connection和Command 改成 SQL Server 的 要不不可能好用
还有连接 字符串 也能了吧

连接字符串是否正确,Access和mssql不同

需要注意的地方比较多,最常见的是自动编号的设置,日期函数需要使用getdate(),不能使用now(),不能使用#2009-1-1#,而使用'2009-1-1'等等,自己查一下吧。