CapturedSql 클래스

The CapturedSql class represents the Transact-SQL commands that are sent to the instance of SQL Server by way of the referenced connection. However, they are then redirected to a buffer instead of running immediately on the instance of SQL Server.

상속 계층

System.Object
  Microsoft.SqlServer.Management.Common.CapturedSql

네임스페이스:  Microsoft.SqlServer.Management.Common
어셈블리:  Microsoft.SqlServer.ConnectionInfo(Microsoft.SqlServer.ConnectionInfo.dll)

구문

‘선언
Public NotInheritable Class CapturedSql
‘사용 방법
Dim instance As CapturedSql
public sealed class CapturedSql
public ref class CapturedSql sealed
[<SealedAttribute>]
type CapturedSql =  class end
public final class CapturedSql

CapturedSql 유형에서 다음 멤버를 표시합니다.

속성

  이름 설명
공용 속성 Text Gets the captured Transact-SQL commands in the buffer.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Add Adds a Transact-SQL statement to the captured Transact-SQL commands in the buffer.
공용 메서드 Clear Clears the buffer that contains the captured Transact-SQL commands.
공용 메서드 Equals (Object에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

주의

The capturedSql object is served by the connectionmanager object.

Thread Safety

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

캡처 모드 사용

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.Common 네임스페이스