调试的时候出现错误
这是我调试的时候提示的错误错误类型:
Microsoft OLE DB Provider for SQL Server (0x80004005)
Cannot open database requested in login '51nx'. Login fails.
/inc/Conn.asp, 第 5 行
以下是代码:
<%
'dsn="Provider=SQLOLEDB.1;Persist Security Info=False;User ID=lj;pwd=lj;Initial Catalog=mkt;Data Source=."
dsn="Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=51nx;Data Source=."
set conn=server.CreateObject("adodb.connection")
conn.open dsn 这是第五行
function closeconn()
conn.close
set conn=nothing
end function
%>