共用方式為


BusinessLogicConnection.ChangeDatabase 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Changes the current database for an open connection.

命名空間:  Microsoft.SqlServer.Replication.BusinessLogicSupport
組件:  Microsoft.SqlServer.Replication.BusinessLogicSupport (在 Microsoft.SqlServer.Replication.BusinessLogicSupport.dll 中)

語法

'宣告
Public Sub ChangeDatabase ( _
    dbName As String _
)
'用途
Dim instance As BusinessLogicConnection 
Dim dbName As String

instance.ChangeDatabase(dbName)
public void ChangeDatabase(
    string dbName
)
public:
virtual void ChangeDatabase(
    String^ dbName
) sealed
abstract ChangeDatabase : 
        dbName:string -> unit  
override ChangeDatabase : 
        dbName:string -> unit
public final function ChangeDatabase(
    dbName : String
)

參數

  • dbName
    型別:System.String
    The name of the database for the connection to use.

實作

IDbConnection.ChangeDatabase(String)

請參閱

參考

BusinessLogicConnection 類別

Microsoft.SqlServer.Replication.BusinessLogicSupport 命名空間