鈥?鈥濆簲鐢ㄧ▼搴忎腑鐨勬湇鍔″櫒閿欒銆侟hr width=100% size=1 color=silver>

鍦ㄤ笌 SQL Server 寤虹珛杩炴帴鏃跺嚭鐜颁笌缃戠粶鐩稿叧鐨勬垨鐗瑰畾浜庡疄渚嬬殑閿欒銆傛湭鎵惧埌鎴栨棤娉曡闂湇鍔″櫒銆傝楠岃瘉瀹炰緥鍚嶇О鏄惁姝g‘骞朵笖 SQL Server 宸查厤缃负鍏佽杩滅▼杩炴帴銆 (provider: 鍛藉悕绠¢亾鎻愪緵绋嬪簭, error: 40 - 鏃犳硶鎵撳紑鍒 SQL Server 鐨勮繛鎺?

璇存槑: 鎵ц褰撳墠 Web 璇锋眰鏈熼棿锛屽嚭鐜版湭澶勭悊鐨勫紓甯搞€傝妫€鏌ュ爢鏍堣窡韪俊鎭紝浠ヤ簡瑙f湁鍏宠閿欒浠ュ強浠g爜涓鑷撮敊璇殑鍑哄鐨勮缁嗕俊鎭€

寮傚父璇︾粏淇℃伅: System.Data.SqlClient.SqlException: 鍦ㄤ笌 SQL Server 寤虹珛杩炴帴鏃跺嚭鐜颁笌缃戠粶鐩稿叧鐨勬垨鐗瑰畾浜庡疄渚嬬殑閿欒銆傛湭鎵惧埌鎴栨棤娉曡闂湇鍔″櫒銆傝楠岃瘉瀹炰緥鍚嶇О鏄惁姝g‘骞朵笖 SQL Server 宸查厤缃负鍏佽杩滅▼杩炴帴銆 (provider: 鍛藉悕绠¢亾鎻愪緵绋嬪簭, error: 40 - 鏃犳硶鎵撳紑鍒 SQL Server 鐨勮繛鎺?

婧愰敊璇?


琛 95:             ds = new DataSet();
琛 96:             this.myadapter = new SqlDataAdapter(tempStrSQL, this.myconn);
琛 97:             this.myadapter.Fill(ds, tableName);
琛 98: 
琛 99:             return ds;

婧愭枃浠碟 d:\wwwroot\cdxlpsj\wwwroot\App_Code\BasicPage.cs    琛孃 97

鍫嗘爤璺熻釜:


[SqlException (0x80131904): 鍦ㄤ笌 SQL Server 寤虹珛杩炴帴鏃跺嚭鐜颁笌缃戠粶鐩稿叧鐨勬垨鐗瑰畾浜庡疄渚嬬殑閿欒銆傛湭鎵惧埌鎴栨棤娉曡闂湇鍔″櫒銆傝楠岃瘉瀹炰緥鍚嶇О鏄惁姝g‘骞朵笖 SQL Server 宸查厤缃负鍏佽杩滅▼杩炴帴銆 (provider: 鍛藉悕绠¢亾鎻愪緵绋嬪簭, error: 40 - 鏃犳硶鎵撳紑鍒 SQL Server 鐨勮繛鎺?]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4906583
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean withFailover) +376
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject, Boolean withFailover) +191
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +1349
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +225
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +431
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +31
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +112
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92
   basic.BasicPage.SelectDataBase(String tableName, String tempStrSQL) in d:\wwwroot\cdxlpsj\wwwroot\App_Code\BasicPage.cs:97
   News2.showMenu() in d:\wwwroot\cdxlpsj\wwwroot\News3.aspx.cs:99
   News2.Page_Load(Object sender, EventArgs e) in d:\wwwroot\cdxlpsj\wwwroot\News3.aspx.cs:36
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2603


鐗堟湰淇℃伅: Microsoft .NET Framework 鐗堟湰:2.0.50727.9044; ASP.NET 鐗堟湰:2.0.50727.9047
十大赌博排行
Baidu
sogou