CommandSent Event (SQL-DMO)

The CommandSent event occurs when SQL-DMO submits a Transact-SQL command batch to the connected Microsoft® SQL Server™ installation.

Applies To

SQLServer Object

Syntax

Private Sub object_CommandSent( SQLCommand as String )

Part Description
object Expression that evaluates to an object in the Applies To list
SQLCommand String containing the Transact-SQL command batch submitted

Remarks

The CommandSent event occurs only after the SQLServer object has connected successfully to a SQL Server installation. 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.

Prototype (C/C++)

HRESULT CommandSent(SQLDMO_LPCSTR szSQL);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.