Méthode SfcTSqlExecutor.ExecuteNonQuery
Executes a query statement against the connection and returns the number of rows affected. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server.
Espace de noms : Microsoft.SqlServer.Management.Sdk.Sfc
Assembly : Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntaxe
'Déclaration
Public Shared Sub ExecuteNonQuery ( _
connection As ServerConnection, _
script As String _
)
'Utilisation
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
)
Paramètres
- connection
Type : Microsoft.SqlServer.Management.Common.ServerConnection
The server connection.
- script
Type : System.String
A string value of the script.