Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
Server Class
Server Properties
 ConnectionContext Property

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
Other versions are also available for the following:
Server.ConnectionContext Property

Gets the current server connection details for the instance of SQL Server.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Visual Basic (Declaration)
Public ReadOnly Property ConnectionContext As ServerConnection
C#
public ServerConnection ConnectionContext { get; }
C++
public:
virtual property ServerConnection^ ConnectionContext {
    ServerConnection^ get () sealed;
}
J#
/** @property */
public final ServerConnection get_ConnectionContext ()
JScript
public final function get ConnectionContext () : ServerConnection

Property Value

A ServerConnection object that specifies the details of the current connection to the instance of SQL Server.

This property can be used to change connection settings, such as the name of the instance of SQL Server or the authentication type. The ConnectionContext property is represented by the ServerConnection class. When connecting to the local instance of SQL Server by using Windows Authentication, the default values are used. You do not have to set any properties.


Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker