sp_removedbreplication 'DatabaseName'
GO
sp_replicationdboption 'DatabaseName','publish','false'
GO
sp_replicationdboption 'DatabaseName','merge publish','false'
GO
sp_msunmarkreplinfo 'ProblemTableName'
GO
use master
GO
sp_configure 'allow',1
GO
reconfigure with override
GO
use ProblemDatabaseName
GO
update sysobjects set replinfo = 0 where name = 'ProblemTableName'
GO
EXEC sp_configure 'allow',0
GO
reconfigure with override
GO