Partilhar via


Método ExecuteNonQuery

Executes a query statement against the connection and returns the number of rows affected. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (em Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintaxe

'Declaração
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