다음을 통해 공유


ISfcHasConnection.GetConnection Method

Definition

Overloads

GetConnection()

Get the connection query on to backing storage. Defaults to assuming a single open query will exist at one time.

GetConnection(SfcObjectQueryMode)

Get the connection to backing storage to support the requested query processing mode. Any connection which supports multiple open queries must assume that the regular connection returned by GetConnection() may be busy at any time.

GetConnection()

Get the connection query on to backing storage. Defaults to assuming a single open query will exist at one time.

public Microsoft.SqlServer.Management.Common.ISfcConnection GetConnection ();
abstract member GetConnection : unit -> Microsoft.SqlServer.Management.Common.ISfcConnection
Public Function GetConnection () As ISfcConnection

Returns

The connection to use.

Applies to

GetConnection(SfcObjectQueryMode)

Get the connection to backing storage to support the requested query processing mode. Any connection which supports multiple open queries must assume that the regular connection returned by GetConnection() may be busy at any time.

public Microsoft.SqlServer.Management.Common.ISfcConnection GetConnection (Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode activeQueriesMode);
abstract member GetConnection : Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode -> Microsoft.SqlServer.Management.Common.ISfcConnection
Public Function GetConnection (activeQueriesMode As SfcObjectQueryMode) As ISfcConnection

Parameters

activeQueriesMode
SfcObjectQueryMode

Returns

The connection to use, or null to use Cache mode. Cache mode avoids connection and open data reader issues.

Applies to