ASP.NET登录SQL SERVER2000失败
鄙人使用ASP.NET连接SQLSERVER2000 进行数据库操作.但老是登陆SQLSERVER2000失败.
错误提示如下:
“/ASP.NET/WebApplication1”应用程序中的服务器错误。
--------------------------------------------------------------------------------
用户 'MS-6994E2BF68EC\ASPNET' 登录失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.SqlClient.SqlException: 用户 'MS-6994E2BF68EC\ASPNET' 登录失败。
源错误:
行 27: SqlCommand sqlCommand1 = new SqlCommand(str,sqlConnection1);
行 28:
行 29: sqlConnection1 .Open ();
行 30: this.DataGrid1 .DataSource=sqlCommand1.ExecuteReader ();
行 31: this.DataGrid1 .DataBind();
源文件: d:\asp.net\webapplication1\webform1.aspx.cs 行: 29
堆栈跟踪:
[SqlException: 用户 'MS-6994E2BF68EC\ASPNET' 登录失败。]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +472
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in d:\asp.net\webapplication1\webform1.aspx.cs:29
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
本人因为刚刚接触到ASP.net ,希望各位高人,大侠,前辈指点迷津.小弟我先谢谢了~```