다음을 통해 공유


CommandSent Event

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The CommandSent event occurs when SQL Distributed Management Objects (SQL-DMO) submits a Transact-SQL command batch to the connected instance of Microsoft SQL Server.

구문

Private Subobject_CommandSent(SQLCommand as String)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

  • SQLCommand
    String that contains the Transact-SQL command batch submitted.

Prototype (C/C++)

HRESULT CommandSent(SQLDMO_LPCSTR szSQL);

주의

The CommandSent event occurs only after the SQLServer object has connected successfully to an instance of SQL Server. SQL-DMO raises the event for every command batch sent, including Transact-SQL submitted for SQL-DMO processes such as collection enumeration and object property value determination.

Applies To: