Redigera

Dela via


SqlExecutionException Constructors

Definition

Initializes a new instance of the SqlExecutionException class.

Overloads

SqlExecutionException()

Initializes a new instance of the SqlExecutionException class using default values.

SqlExecutionException(String)

Initializes a new instance of the SqlExecutionException class using the passed message.

SqlExecutionException(String, Exception)

Initializes a new instance of the SqlExecutionException class using the passed message and exception.

SqlExecutionException(String, String, String, String, String, SqlException)

Initializes a new instance of the SqlExecutionException class.

SqlExecutionException()

Initializes a new instance of the SqlExecutionException class using default values.

public:
 SqlExecutionException();
public SqlExecutionException ();
Public Sub New ()

Applies to

SqlExecutionException(String)

Initializes a new instance of the SqlExecutionException class using the passed message.

public:
 SqlExecutionException(System::String ^ message);
public SqlExecutionException (string message);
new System.Web.Management.SqlExecutionException : string -> System.Web.Management.SqlExecutionException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

SqlExecutionException(String, Exception)

Initializes a new instance of the SqlExecutionException class using the passed message and exception.

public:
 SqlExecutionException(System::String ^ message, Exception ^ innerException);
public SqlExecutionException (string message, Exception innerException);
new System.Web.Management.SqlExecutionException : string * Exception -> System.Web.Management.SqlExecutionException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The Exception encountered.

Applies to

SqlExecutionException(String, String, String, String, String, SqlException)

Initializes a new instance of the SqlExecutionException class.

public:
 SqlExecutionException(System::String ^ message, System::String ^ server, System::String ^ database, System::String ^ sqlFile, System::String ^ commands, System::Data::SqlClient::SqlException ^ sqlException);
public SqlExecutionException (string message, string server, string database, string sqlFile, string commands, System.Data.SqlClient.SqlException sqlException);
new System.Web.Management.SqlExecutionException : string * string * string * string * string * System.Data.SqlClient.SqlException -> System.Web.Management.SqlExecutionException
Public Sub New (message As String, server As String, database As String, sqlFile As String, commands As String, sqlException As SqlException)

Parameters

message
String

The error message that explains the reason for the exception.

server
String

The SQL Server instance against which the SQL commands are run.

database
String

The database against which the SQL commands are run.

sqlFile
String

The name of the installation file containing the SQL commands being run.

commands
String

The SQL commands being run when the exception occurred.

sqlException
SqlException

The SqlException encountered when processing the SQL commands.

See also

Applies to