Short version: sp_adddistributiondb ran on wrong database; how to "undo" that.
I goofed. I had a script that sets up replication on our test box; after a successful test, I modified the server and database names within the script to run on our production box.
Except I goofed on the database name for the call to SP_AddDistributionDB: rather than passing it the name of a new, separate distribution database, I gave it the name of a production database (the database that we want to publish).
Severe panic when the database no longer shows in the list of databases. Fortunately, it is still there, but now flagged as a "system" database in SSMS.
Either my search-fu is broken, or no one else has ever had this problem. The database is operational, but clearly isn't quite right.
How can I undo whatever gets done by sp_adddistributiondb (assumedly to both the database itself as well as various system databases/tables)? The corollary to sp_adddistributiondb is sp_dropdistributiondb; my fear is that would drop the entire database, but maybe it's more benign than that.
Any advice?
I goofed. I had a script that sets up replication on our test box; after a successful test, I modified the server and database names within the script to run on our production box.
Except I goofed on the database name for the call to SP_AddDistributionDB: rather than passing it the name of a new, separate distribution database, I gave it the name of a production database (the database that we want to publish).
Severe panic when the database no longer shows in the list of databases. Fortunately, it is still there, but now flagged as a "system" database in SSMS.
Either my search-fu is broken, or no one else has ever had this problem. The database is operational, but clearly isn't quite right.
How can I undo whatever gets done by sp_adddistributiondb (assumedly to both the database itself as well as various system databases/tables)? The corollary to sp_adddistributiondb is sp_dropdistributiondb; my fear is that would drop the entire database, but maybe it's more benign than that.
Any advice?