SfcTSqlExecutor.ExecuteNonQuery 메서드
Executes a query statement against the connection and returns the number of rows affected. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다.
네임스페이스: Microsoft.SqlServer.Management.Sdk.Sfc
어셈블리: Microsoft.SqlServer.Management.Sdk.Sfc(Microsoft.SqlServer.Management.Sdk.Sfc.dll)
구문
‘선언
Public Shared Sub ExecuteNonQuery ( _
connection As ServerConnection, _
script As String _
)
‘사용 방법
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
)
매개 변수
- connection
유형: Microsoft.SqlServer.Management.Common.ServerConnection
The server connection.
- script
유형: System.String
A string value of the script.