SDAC

TMSConnection.OnInfoMessage Event

Occurs if a SQL Server info message was generated.

Class

TMSConnection

Syntax

property OnInfoMessage: TMSConnectionInfoMessageEvent;

Remarks

The OnInfoMessage event occurs in case of generation of a SQL Server info message. The event occurs only if the command is executed through a dataset descendant (TMSQuery, TMSStoredProc). To make this event occur for TMSScript, TMSScript.DataSet should be set. It does not work for TMSSQL. The following is the list of Transact-SQL commands that generate info messages:

PRINT

RAISERROR with a severity of 10 or lower

DBCC

SET SHOWPLAN

SET STATISTICS.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback