ServerConnection Events

Public Events

  Name Description
ms218674.pubevent(en-US,SQL.90).gif InfoMessage 
The event that occurs when the instance of SQL Server generates an informational message.
(inherited from ConnectionManager )
ms218674.pubevent(en-US,SQL.90).gif RemoteLoginFailed 
This event occurs when a remote login fails to connect to the instance of SQL Server.
(inherited from ConnectionManager )
ms218674.pubevent(en-US,SQL.90).gif ServerMessage 
The event that occurs when the instance of SQL Server generates a message.
(inherited from ConnectionManager )
ms218674.pubevent(en-US,SQL.90).gif StateChange 
The event that occurs when the instance of SQL Server changes state.
(inherited from ConnectionManager )
ms218674.pubevent(en-US,SQL.90).gif StatementExecuted 
The event that occurs when the instance of SQL Server executes a statement on the current connection.
(inherited from ConnectionManager )

See Also

Reference

ServerConnection Class
Microsoft.SqlServer.Management.Common Namespace

Other Resources

How to: Connect to the Local Instance of SQL Server by Using Windows Authentication in Visual Basic .NET
Connecting to an Instance of SQL Server