![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, We are using DAAB (Microsoft.ApplicationBlocks.Data) to execute stored procedure from .NET But at times we get the following exception "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding". Would appreciate immediate help. Exception Information ********************************************* Exception Type: System.Data.SqlClient.SqlException Errors: System.Data.SqlClient.SqlErrorCollection Class: 10 LineNumber: 0 Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Number: -2 Procedure: ConnectionRead (recv()). Server: State: 0 Source: .Net SqlClient Data Provider TargetSite: System.Data.SqlClient.SqlDataReader ExecuteReader(System.Data.CommandBehavior, System.Data.SqlClient.RunBehavior, Boolean) HelpLink: NULL StackTrace Information ********************************************* at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.Execute Reader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.Execute Reader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at TCOM.OSS.Providers.SQLProvider.Provider.CallStored Proc(String procedureName, SqlParameter[]& sqlParameterList) |
#3
| |||
| |||
|
|
Hi Check for blocking. Run sp_who2 to see what process it blocking another one. Look at "blocks, avoiding" in SQL Server BOL. Regards Mike "Sachin Surana" wrote: Hi All, We are using DAAB (Microsoft.ApplicationBlocks.Data) to execute stored procedure from .NET But at times we get the following exception "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding". Would appreciate immediate help. Exception Information ********************************************* Exception Type: System.Data.SqlClient.SqlException Errors: System.Data.SqlClient.SqlErrorCollection Class: 10 LineNumber: 0 Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Number: -2 Procedure: ConnectionRead (recv()). Server: State: 0 Source: .Net SqlClient Data Provider TargetSite: System.Data.SqlClient.SqlDataReader ExecuteReader(System.Data.CommandBehavior, System.Data.SqlClient.RunBehavior, Boolean) HelpLink: NULL StackTrace Information ********************************************* at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.Execute Reader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.Execute Reader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at TCOM.OSS.Providers.SQLProvider.Provider.CallStored Proc(String procedureName, SqlParameter[]& sqlParameterList) |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
*Hi All, We are using DAAB (Microsoft.ApplicationBlocks.Data) to execute stored procedure from .NET But at times we get the following exception "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding". Would appreciate immediate help. Exception Information ********************************************* Exception Type: System.Data.SqlClient.SqlException Errors: System.Data.SqlClient.SqlErrorCollection Class: 10 LineNumber: 0 Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Number: -2 Procedure: ConnectionRead (recv()). Server: State: 0 Source: .Net SqlClient Data Provider TargetSite: System.Data.SqlClient.SqlDataReader ExecuteReader(System.Data.CommandBehavior, System.Data.SqlClient.RunBehavior, Boolean) HelpLink: NULL StackTrace Information ********************************************* at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.Execute Reader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.Execute Reader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at TCOM.OSS.Providers.SQLProvider.Provider.CallStored Proc(String procedureName, SqlParameter[]& sqlParameterList) * |
#6
| |||
| |||
|
|
*Hi All, We are using DAAB (Microsoft.ApplicationBlocks.Data) to execute stored procedure from .NET But at times we get the following exception "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding". Would appreciate immediate help. Exception Information ********************************************* Exception Type: System.Data.SqlClient.SqlException Errors: System.Data.SqlClient.SqlErrorCollection Class: 10 LineNumber: 0 Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Number: -2 Procedure: ConnectionRead (recv()). Server: State: 0 Source: .Net SqlClient Data Provider TargetSite: System.Data.SqlClient.SqlDataReader ExecuteReader(System.Data.CommandBehavior, System.Data.SqlClient.RunBehavior, Boolean) HelpLink: NULL StackTrace Information ********************************************* at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.Execute Reader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.Execute Reader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at TCOM.OSS.Providers.SQLProvider.Provider.CallStored Proc(String procedureName, SqlParameter[]& sqlParameterList) * |
#7
| |||
| |||
|
|
Does anyone know how to modify SqlHelper.cs ExecuteNonQuery to extend the timeout? I have a sql stored procedure that runs without output params but is timing out. Any help is greatly appreciated. thanks, -MJ Sachin Surana wrote: *Hi All, We are using DAAB (Microsoft.ApplicationBlocks.Data) to execute stored procedure from .NET But at times we get the following exception "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding". Would appreciate immediate help. Exception Information ********************************************* Exception Type: System.Data.SqlClient.SqlException Errors: System.Data.SqlClient.SqlErrorCollection Class: 10 LineNumber: 0 Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Number: -2 Procedure: ConnectionRead (recv()). Server: State: 0 Source: .Net SqlClient Data Provider TargetSite: System.Data.SqlClient.SqlDataReader ExecuteReader(System.Data.CommandBehavior, System.Data.SqlClient.RunBehavior, Boolean) HelpLink: NULL StackTrace Information ********************************************* at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.Execute Reader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.Execute Reader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at TCOM.OSS.Providers.SQLProvider.Provider.CallStored Proc(String procedureName, SqlParameter[]& sqlParameterList) * -- MBeaudreau ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------ |
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |