Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SqlConnectionInfo Class

The SqlConnectionInfo object represents information that is required to establish a connection to an instance of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
[SerializableAttribute]
[ComVisibleAttribute(false)]
public class SqlConnectionInfo : SqlOlapConnectionInfoBase

The SqlConnectionInfo type exposes the following members.

  NameDescription
Public methodSqlConnectionInfo()Initializes a new instance of the SqlConnectionInfo class.
Public methodSqlConnectionInfo(String)Initializes a new instance of the SqlConnectionInfo class.
Public methodSqlConnectionInfo(SqlConnectionInfo)Initializes a new instance of the SqlConnectionInfo class.
Public methodSqlConnectionInfo(ServerConnection, ConnectionType)Initializes a new instance of the SqlConnectionInfo class.
Public methodSqlConnectionInfo(String, String, String)Initializes a new instance of the SqlConnectionInfo class.
Top
  NameDescription
Public propertyApplicationNameGets or sets the name of the application that is connected to the instance of SQL Server.
Public propertyConnectionProtocolGets or sets the network protocol used by the connection to the instance of SQL Server.
Public propertyConnectionStringGets the connection string used when the connection is established with the instance of SQL Server. (Overrides SqlOlapConnectionInfoBase.ConnectionString.)
Protected propertyConnectionStringInternalGets or sets the internal connection string. (Inherited from SqlOlapConnectionInfoBase.)
Public propertyConnectionTimeoutGets or sets the number of seconds before a connection times out. (Inherited from SqlOlapConnectionInfoBase.)
Protected propertyConnectionTimeoutInternalGets or sets the internal connection timeout period in seconds. (Inherited from SqlOlapConnectionInfoBase.)
Public propertyDatabaseNameGets or sets the database with which the connection is established. (Inherited from SqlOlapConnectionInfoBase.)
Protected propertyDatabaseNameInternalGets or sets the internal database name. (Inherited from SqlOlapConnectionInfoBase.)
Public propertyEncryptConnectionGets or sets the Boolean property value that specifies whether the connection information is encrypted.
Protected propertyIntegratedSecurityInternalGets or sets the Boolean property value that specifies whether the connection supports integrated security. (Inherited from SqlOlapConnectionInfoBase.)
Public propertyMaxPoolSizeGets or sets the maximum number of execution threads in a thread pool that the connection will accept.
Public propertyMinPoolSizeGets or sets the minimum number of execution threads in a thread pool that the connection will accept.
Public propertyPacketSizeGets or sets the network packet size used by the connection to send and receive data in bytes.
Public propertyPasswordGets or sets the password used to establish a connection. (Inherited from SqlOlapConnectionInfoBase.)
Public propertyPoolConnectionLifeTimeGets or sets the pool connection period in seconds.
Public propertyPooledGets or sets the SqlBoolean property value that specifies whether the connection is pooled.
Public propertyQueryTimeoutGets or sets the number of seconds before a query times out. (Inherited from SqlOlapConnectionInfoBase.)
Protected propertyQueryTimeoutInternalGets or sets the internal query timeout period in seconds. (Inherited from SqlOlapConnectionInfoBase.)
Protected propertyRebuildConnectionStringInternalGets or sets a Boolean indicating whether the internal connection string must be rebuilt. (Inherited from SqlOlapConnectionInfoBase.)
Public propertySecurePasswordGets or sets the secure password used to establish a connection. (Inherited from SqlOlapConnectionInfoBase.)
Public propertyServerCaseSensitivityGets or sets the server case sensitivity for the connection. (Inherited from ConnectionInfoBase.)
Public propertyServerNameGets or sets the name of the instance of SQL Server. (Inherited from SqlOlapConnectionInfoBase.)
Protected propertyServerNameInternalGets or sets the internal name of the instance of SQL Server. (Inherited from SqlOlapConnectionInfoBase.)
Public propertyServerTypeGets or sets the server connection type. (Inherited from ConnectionInfoBase.)
Public propertyServerVersionGets or sets the version information about the instance of SQL Server. (Inherited from ConnectionInfoBase.)
Public propertyUseIntegratedSecurityGets or sets the Boolean property value that specifies whether the connection uses integrated security. (Inherited from SqlOlapConnectionInfoBase.)
Public propertyUserNameGets or sets the user that is connecting to the instance of SQL Server. (Inherited from SqlOlapConnectionInfoBase.)
Public propertyWorkstationIdGets or sets the value that uniquely identifies the client workstation.
Top
  NameDescription
Protected methodConnectionParmsChangedChanges the connection parameters. (Inherited from SqlOlapConnectionInfoBase.)
Public methodCopyReturns a copy of the SqlConnectionInfo object.
Public methodCreateConnectionObjectCreates a system connection object. (Overrides SqlOlapConnectionInfoBase.CreateConnectionObject().)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns the SqlConnectionInfo object in string format. (Overrides SqlOlapConnectionInfoBase.ToString().)
Top
  NameDescription
Public fieldStatic memberDefaultNetworkProtocolThe NetworkProtocol object that specifies the default network protocol for the connection.
Top

The SqlConnectionInfo object can be passed as a parameter when constructing the ServerConnection object to provide connection information.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.