ExecuteNonQuery-Methode
Executes a query statement against the connection and returns the number of rows affected. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntax
'Declaration
Public Shared Sub ExecuteNonQuery ( _
connection As ServerConnection, _
script As String _
)
'Usage
Dim connection As ServerConnection
Dim script As String
SfcTSqlExecutor.ExecuteNonQuery(connection, _
script)
public static void ExecuteNonQuery(
ServerConnection connection,
string script
)
public:
static void ExecuteNonQuery(
ServerConnection^ connection,
String^ script
)
static member ExecuteNonQuery :
connection:ServerConnection *
script:string -> unit
public static function ExecuteNonQuery(
connection : ServerConnection,
script : String
)
Parameter
- connection
Typ: Microsoft.SqlServer.Management.Common. . :: . .ServerConnection
The server connection.
- script
Typ: System. . :: . .String
A string value of the script.