Find which database is involved in Replication
select * from sys.databases where is_distributor !=0 or is_published !=0 or is_subscribed !=0or is_merge_published !=0
select * from sys.databases where is_distributor !=0 or is_published !=0 or is_subscribed !=0or is_merge_published !=0