sql2000数据库与asp网页的链接

来源:百度知道 编辑:UC知道 时间:2024/06/04 09:10:51
自己做的网页在我的电脑上预览的时候报错:
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]用户 'sa' 登录失败。
/xt/hrmain/index.asp, 第 15 行

前面的程序如下
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="asp_lib/md5.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("UserName"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization=""
MM_redirectLoginSuccess="EmpMain_FrameAll.asp"
MM_redirectLoginFailed="index.asp"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateO

到Connections/EmpMain.asp里找到MM_EmpMain_STRING看里面的sa用户和密码设的对不对

用户 'sa' 登录失败

数据库的密码不对

这种情况,一般就是sa的密码错误造成的!