Server Error in '/WebApplication' Application.
--------------------------------------------------------------------------------SQL Server does not exist or access denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.我用C#程序連接到另一台機子的Sql server 2000 數據庫,出現以上錯誤
但連接串和程序代碼是正確的(我嘗試連接到其它機子的sql服務器,可以取到數據回來)
連接串 private static string connStr = "server=10.168.0.45;uid=sa;pwd=;database=master"; da = new SqlDataAdapter(cmdStr,conn);
Line 93: DataTable dt = new DataTable();
Line 94: da.Fill(dt); //這裡出錯
Line 95: da.Dispose();大家幫個忙啊,先謝謝了
--------------------------------------------------------------------------------SQL Server does not exist or access denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.我用C#程序連接到另一台機子的Sql server 2000 數據庫,出現以上錯誤
但連接串和程序代碼是正確的(我嘗試連接到其它機子的sql服務器,可以取到數據回來)
連接串 private static string connStr = "server=10.168.0.45;uid=sa;pwd=;database=master"; da = new SqlDataAdapter(cmdStr,conn);
Line 93: DataTable dt = new DataTable();
Line 94: da.Fill(dt); //這裡出錯
Line 95: da.Dispose();大家幫個忙啊,先謝謝了
你那个还是连接服务器出问题咯,试试server用机器名咯
有时没有启用也不会登录成功的
地址寫錯了,或者用戶名密碼不能登錄
連接上了,但運行程序到數據庫連接的代碼時就出錯。
To chuxue1342(@楚}===天{==========雪饮>) :
也連接的,就是運行調試的時候出錯