Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

sp_dropdistributiondb

SQL Server 2000

Drops a distribution database. Drops the physical files used by the database if they are not used by another database. This stored procedure is executed at the Distributor on any database.

Syntax

sp_dropdistributiondb [ @database = ] 'database'

Arguments

[@database = ] 'database'

Is the database to drop. database is sysname, with no default.

Return Code Values

0 (success) or 1 (failure)

Remarks

sp_dropdistributiondb is used in all types of replication.

This stored procedure must be executed before dropping the Distributor by executing sp_dropdistributor.

Permissions

Only members of the sysadmin fixed server role can execute sp_dropdistributiondb.

See Also

sp_adddistributiondb

sp_changedistributiondb

sp_helpdistributiondb

System Stored Procedures

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.