SQLMessageID Property
后续版本的 Microsoft SQL Server 将删除该功能。 请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The SQLMessageID property identifies a Microsoft SQL Server error message by message number.
语法
object.SQLMessageID [= value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
A long integer that identifies a SQL Server error message
Data Type
Long
Modifiable
Read/write
Prototype (C/C++)
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.