为了那个access与xp不匹配的问题我又装了SQL,但是现在我的程序还是有问题,请大家帮忙看一下,这个数据库的连接该怎么办。 这是个服务器端验证代码的程序: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta http-equiv="Content-Language" content="zh-cn"> <title>登录</title> </head> <body> <div align=center> <% dim strUserName dim strPassword dim conn dim rs dim sql strUserName=Request.Form("txtUserName") strPassword=Request.Form("txtPassword") set conn=server.createobject("ADODB.Connection") conn.open"Driver={SQL Server};" & "Server=ZG-SCI-HZIEE;" & "Database=LearnAsp;" & "Uid=sql;Pwd=sql" set rs=server.createobject("ADODB.Recordset") rs.open.sql,conn,1,1 if not rs.eof then response.write"登录成功!" else response.write"登录失败!" end if set rs=nothing conn.close set conn=nothing %> </div> </body> </html> 这是出错的显示: 错误类型: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server 不存在或访问被拒绝 /asp实验/verifyIDA.asp, 第 18 行