SqlCommandExtensions.ExecuteReaderWithRetry Method

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information about Transient Fault Handling, see Transient Fault Handling.

  NameDescription
Public method Static member ExecuteReaderWithRetry(SqlCommand)
Sends the specified command to the connection and builds a SqlDataReader object containing the results. Uses the default retry policy when executing the command.
Public method Static member ExecuteReaderWithRetry(SqlCommand, RetryPolicy)
Sends the specified command to the connection and builds a SqlDataReader object containing the results. Uses the specified retry policy when executing the command.
Public method Static member ExecuteReaderWithRetry(SqlCommand, CommandBehavior)
Sends the specified command to the connection and builds a SqlDataReader object using one of the CommandBehavior values. Uses the default retry policy when executing the command.
Public method Static member ExecuteReaderWithRetry(SqlCommand, RetryPolicy, RetryPolicy)
Sends the specified command to the connection and builds a SqlDataReader object containing the results. Uses the specified retry policy when executing the command. Uses a separate specified retry policy when establishing a connection.
Public method Static member ExecuteReaderWithRetry(SqlCommand, CommandBehavior, RetryPolicy)
Sends the specified command to the connection and builds a SqlDataReader object using one of the CommandBehavior values. Uses the specified retry policy when executing the command.
Public method Static member ExecuteReaderWithRetry(SqlCommand, CommandBehavior, RetryPolicy, RetryPolicy)
Sends the specified command to the connection and builds a SqlDataReader object using one of the CommandBehavior values. Uses the specified retry policy when executing the command. Uses a separate specified retry policy when establishing a connection.
Show: