drop connection

Removes a database from the replication system.

Syntax

drop connection to data_server.database

Parameters

Examples

Usage

  • Use drop connection to remove database connection information from the Replication Server system tables for default connections and alternate connections. This command does not remove replicated data from any database in the system.

  • Before you drop a connection:
    • Drop any subscriptions that replicate data to the database.

    • If the connection is to a primary database, drop any replication definitions for tables in the database.

  • Before you re-create a connection to a database with the same name, you may need to use sysadmin dropdb.

  • Replication Server distributes information about the dropped database connection to qualifying sites through the replication system. The changes do not appear immediately at all such sites because of normal replication system lag time.

Permissions

drop connection requires “sa” permission.

Related reference
admin show_connections
alter connection
create alternate connection
create connection
resume connection
suspend connection
sysadmin dropdb