IntegrationServices.ISfcHasConnection.GetConnection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示要取得的連結。
多載
| 名稱 | Description |
|---|---|
| ISfcHasConnection.GetConnection() |
擷取伺服器與備份儲存的連線。 |
| ISfcHasConnection.GetConnection(SfcObjectQueryMode) |
取得目前的連線以進行查詢。 回傳一個連線,支援單一序列查詢或多個同時開啟的查詢(如請求)。 |
ISfcHasConnection.GetConnection()
擷取伺服器與備份儲存的連線。
virtual Microsoft::SqlServer::Management::Common::ISfcConnection ^ Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection() = Microsoft::SqlServer::Management::Sdk::Sfc::ISfcHasConnection::GetConnection;
Microsoft.SqlServer.Management.Common.ISfcConnection ISfcHasConnection.GetConnection();
abstract member Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection : unit -> Microsoft.SqlServer.Management.Common.ISfcConnection
override this.Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection : unit -> Microsoft.SqlServer.Management.Common.ISfcConnection
Function GetConnection () As ISfcConnection Implements ISfcHasConnection.GetConnection
傳回
一個包含伺服器連線的物件。
實作
適用於
ISfcHasConnection.GetConnection(SfcObjectQueryMode)
取得目前的連線以進行查詢。 回傳一個連線,支援單一序列查詢或多個同時開啟的查詢(如請求)。
virtual Microsoft::SqlServer::Management::Common::ISfcConnection ^ Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection(Microsoft::SqlServer::Management::Sdk::Sfc::SfcObjectQueryMode mode) = Microsoft::SqlServer::Management::Sdk::Sfc::ISfcHasConnection::GetConnection;
Microsoft.SqlServer.Management.Common.ISfcConnection ISfcHasConnection.GetConnection(Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode mode);
abstract member Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection : Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode -> Microsoft.SqlServer.Management.Common.ISfcConnection
override this.Microsoft.SqlServer.Management.Sdk.Sfc.ISfcHasConnection.GetConnection : Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectQueryMode -> Microsoft.SqlServer.Management.Common.ISfcConnection
Function GetConnection (mode As SfcObjectQueryMode) As ISfcConnection Implements ISfcHasConnection.GetConnection
參數
- mode
- SfcObjectQueryMode
連線的方式。
傳回
連線用來使用,或用 null 來使用快取模式。 快取模式可避免連線及開啟資料讀取器的問題。