Export (0) Print
Expand All

SqlConnection Properties

The SqlConnection type exposes the following members.

  NameDescription
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property Supported by the .NET Compact Framework ConnectionString Gets or sets the string used to open a SQL Server database. (Overrides DbConnection.ConnectionString.)
Public property Supported by the .NET Compact Framework ConnectionTimeout Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error. (Overrides DbConnection.ConnectionTimeout.)
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Public property Supported by the .NET Compact Framework Database Gets the name of the current database or the database to be used after a connection is opened. (Overrides DbConnection.Database.)
Public property Supported by the .NET Compact Framework DataSource Gets the name of the instance of SQL Server to which to connect. (Overrides DbConnection.DataSource.)
Protected property DbProviderFactory Gets the DbProviderFactory for this DbConnection. (Inherited from DbConnection.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected property Supported by the .NET Compact Framework Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property FireInfoMessageEventOnUserErrors Gets or sets the FireInfoMessageEventOnUserErrors property.
Public property Supported by the .NET Compact Framework PacketSize Gets the size (in bytes) of network packets used to communicate with an instance of SQL Server.
Public property Supported by the .NET Compact Framework ServerVersion Gets a string that contains the version of the instance of SQL Server to which the client is connected. (Overrides DbConnection.ServerVersion.)
Public property Supported by the .NET Compact Framework Site Gets or sets the ISite of the Component. (Inherited from Component.)
Public property Supported by the .NET Compact Framework State Indicates the state of the SqlConnection. (Overrides DbConnection.State.)
Public property StatisticsEnabled When set to true, enables statistics gathering for the current connection.
Public property Supported by the .NET Compact Framework WorkstationId Gets a string that identifies the database client.
Top

Community Additions

ADD
Show:
© 2014 Microsoft