Sdílet prostřednictvím


SqlStoreConnection Class

Represents a connection to an instance of SQL Server. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcConnection
    Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Class SqlStoreConnection _
    Inherits SfcConnection
'Usage
Dim instance As SqlStoreConnection
public class SqlStoreConnection : SfcConnection
public ref class SqlStoreConnection : public SfcConnection
type SqlStoreConnection =  
    class 
        inherit SfcConnection 
    end
public class SqlStoreConnection extends SfcConnection

The SqlStoreConnection type exposes the following members.

Constructors

  Name Description
Public method SqlStoreConnection Initializes a new instance of the SqlStoreConnection class with the specified SQL connection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Top

Properties

  Name Description
Public property ConnectionType Gets a value indicating whether the database server is part of a multi-server administration matrix. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.ConnectionType.)
Public property ConnectTimeout Gets or sets the timeout interval, in seconds. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.ConnectTimeout.)
Public property IsForceDisconnected Gets a value indicating whether the connection has been forcibly disconnected. (Inherited from SfcConnection.)
Public property IsOpen Gets a value indicating whether the connection is currently open. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.IsOpen.)
Public property ServerConnection Gets the Server Connection for the SqlStoreConnection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public property ServerInstance Gets or sets the name of the server. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.ServerInstance.)
Public property ServerVersion Gets the version number of the connected server. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.ServerVersion.)
Public property StatementTimeout Gets or sets the number of seconds a statement is given to run before failing with a time-out error. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.StatementTimeout.)

Top

Methods

  Name Description
Public method Connect Attempts to connect to the server. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.Connect().)
Public method Copy Returns a copy of the server connection object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.Copy().)
Public method Disconnect Attempts to disconnect from the server. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.Disconnect().)
Public method Equals(Object) (Inherited from Object.)
Public method Equals(SfcConnection) Determines whether the specified server connection is equal to the current SqlStoreConnection object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.Equals(SfcConnection).)
Protected method Finalize (Inherited from Object.)
Public method ForceDisconnected Enforces a server disconnect and ensures that connection cannot be re-opened again. (Inherited from SfcConnection.)
Public method GetHashCode Returns the hash code for this instance. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides SfcConnection.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToEnumeratorObject Returns an enumerator object. (Overrides SfcConnection.ToEnumeratorObject().)
Public method ToString (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

Microsoft.SqlServer.Management.Sdk.Sfc Namespace