SfcTSqlExecutor.ExecuteNonQuery Método
Executes a query statement against the connection and returns the number of rows affected. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.
Espacio de nombres: Microsoft.SqlServer.Management.Sdk.Sfc
Ensamblado: Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintaxis
'Declaración
Public Shared Sub ExecuteNonQuery ( _
connection As ServerConnection, _
script As String _
)
'Uso
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
)
Parámetros
- connection
Tipo: Microsoft.SqlServer.Management.Common.ServerConnection
The server connection.
- script
Tipo: System.String
A string value of the script.