Export (0) Print
Expand All

SqlConnection Properties

The properties of the SqlConnection class are listed here. For a complete list of SqlConnection class members, see the SqlConnection Members topic.

Public Properties

public propertyConnectionString

Supported by the .NET Compact Framework.

Gets or sets the string used to open a SQL Server database.
public propertyConnectionTimeout

Supported by the .NET Compact Framework.

Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.
public propertyContainer (inherited from Component) Gets the IContainer that contains the Component.
public propertyDatabase

Supported by the .NET Compact Framework.

Gets the name of the current database or the database to be used after a connection is opened.
public propertyDataSource

Supported by the .NET Compact Framework.

Gets the name of the instance of SQL Server to which to connect.
public propertyPacketSize

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Gets a string containing the version of the instance of SQL Server to which the client is connected.
public propertySite (inherited from Component) Gets or sets the ISite of the Component.
public propertyState

Supported by the .NET Compact Framework.

Gets the current state of the connection.
public propertyWorkstationId

Supported by the .NET Compact Framework.

Gets a string that identifies the database client.

Protected Properties

protected propertyDesignMode (inherited from Component) Gets a value that indicates whether the Component is currently in design mode.
protected propertyEvents (inherited from Component) Gets the list of event handlers that are attached to this Component.

See Also

SqlConnection Class | System.Data.SqlClient Namespace

Show:
© 2014 Microsoft