Partager via


RemoteLoginFailed Event

Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.

The RemoteLoginFailed event occurs when an instance of Microsoft SQL Server attempts to connect to a remote server fails.

Syntaxe

Private Sub
object
_RemoteLoginFailed(
Severity as Long
,
MessageNumber as Long
,
MessageState as Long
,
Message as String
)

Parts

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

  • Severity
    Long integer that identifies the severity level of a SQL Server error message.

  • MessageNumber
    Long integer that identifies a SQL Server error message by number.

  • MessageState
    Long integer that identifies a state value for a SQL Server error message.

  • Message
    String that contains SQL Server message text.

Prototype (C/C++)

HRESULT RemoteLoginFailed(long Severity, long MessageNumber,
long MessageState, SQLDMO_LPCSTR Message);

Notes

To facilitate connections between instances of SQL Server in an organization, SQL Server uses remote-server naming.

An instance of SQL Server can maintain authentication information for connections originating from other instances of SQL Server. Each instance of SQL Server in an organization can control access by listing the instances of SQL Server from which it accepts connections.

A connection initiated by an instance of SQL Server can fail when authentication for the connection fails or when the remote server denies access to all other instances of SQL Server.

Applies To: