Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SQLMessageID Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The SQLMessageID property identifies a Microsoft SQL Server error message by message number.


object
.SQLMessageID [= value]

object

An expression that evaluates to an object in the Applies To list

value

A long integer that identifies a SQL Server error message

Long

Read/write

HRESULT GetSQLMessageID(LPLONG pRetVal);
HRESULT SetSQLMessageID(long NewValue);

Set SQLMessageID to filter for jobs that, as part of processing, generate the error number specified. Set SQLMessageID to -1 to stop filtering by error message raised.

Community Additions

ADD
Show:
© 2015 Microsoft