Condividi tramite


Metodo BusinessLogicConnection.ChangeDatabase

Questa API supporta l'infrastruttura SQL Server 2012 e non può essere utilizzata direttamente dal codice.

Changes the current database for an open connection.

Spazio dei nomi  Microsoft.SqlServer.Replication.BusinessLogicSupport
Assembly:  Microsoft.SqlServer.Replication.BusinessLogicSupport (in Microsoft.SqlServer.Replication.BusinessLogicSupport.dll)

Sintassi

'Dichiarazione
Public Sub ChangeDatabase ( _
    dbName As String _
)
'Utilizzo
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
)

Parametri

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

Implementa

IDbConnection.ChangeDatabase(String)

Vedere anche

Riferimento

BusinessLogicConnection Classe

Spazio dei nomi Microsoft.SqlServer.Replication.BusinessLogicSupport