SqlConnection Properties

SqlConnection Properties

 

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubpropertyAccessToken

Gets or sets the access token for the connection.

System_CAPS_pubpropertyClientConnectionId

The connection ID of the most recent connection attempt, regardless of whether the attempt succeeded or failed.

System_CAPS_pubpropertySystem_CAPS_staticColumnEncryptionTrustedMasterKeyPaths

Allows you to set a list of trusted key paths for a database server. If while processing an application query the driver receives a key path that is not on the list, the query will fail. This property provides additional protection against security attacks that involve a compromised SQL Server providing fake key paths, which may lead to leaking key store credentials.

System_CAPS_pubpropertyConnectionString

Gets or sets the string used to open a SQL Server database.(Overrides DbConnection.ConnectionString.)

System_CAPS_pubpropertyConnectionTimeout

Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.(Overrides DbConnection.ConnectionTimeout.)

System_CAPS_pubpropertyContainer

Gets the IContainer that contains the Component.(Inherited from Component.)

System_CAPS_pubpropertyCredential

Gets or sets the SqlCredential object for this connection.

System_CAPS_pubpropertyDatabase

Gets the name of the current database or the database to be used after a connection is opened.(Overrides DbConnection.Database.)

System_CAPS_pubpropertyDataSource

Gets the name of the instance of SQL Server to which to connect.(Overrides DbConnection.DataSource.)

System_CAPS_pubpropertyFireInfoMessageEventOnUserErrors

Gets or sets the FireInfoMessageEventOnUserErrors property.

System_CAPS_pubpropertyPacketSize

Gets the size (in bytes) of network packets used to communicate with an instance of SQL Server.

System_CAPS_pubpropertyServerVersion

Gets a string that contains the version of the instance of SQL Server to which the client is connected.(Overrides DbConnection.ServerVersion.)

System_CAPS_pubpropertySite

Gets or sets the ISite of the Component.(Inherited from Component.)

System_CAPS_pubpropertyState

Indicates the state of the SqlConnection during the most recent network operation performed on the connection.(Overrides DbConnection.State.)

System_CAPS_pubpropertyStatisticsEnabled

When set to true, enables statistics gathering for the current connection.

System_CAPS_pubpropertyWorkstationId

Gets a string that identifies the database client.

Return to top
Show:
© 2016 Microsoft