Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Executes a query statement against the connection and returns the number of rows affected. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
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
)
Parameters
- connection
Type: Microsoft.SqlServer.Management.Common.ServerConnection
The server connection.
- script
Type: System.String
A string value of the script.