2 hari ini pusing, karena ada 1 database yang tidak bisa di tambahin field dengan error sbb :

Cannot drop the table ‘dbo.tablename’ because it is being used for replication.

padahal replikasi sudah dimatikan, relationship integrity udah dan depedencies lainnya sudah di offkan tapi tetap ga bisa juga modify tabelnya, ini solusi akhirnya :


1. sp_removedbreplication 'DatabaseName'
GO
2. sp_replicationdboption 'DatabaseName','publish','false'
GO
3. sp_replicationdboption 'DatabaseName','merge publish','false'
GO
4. sp_msunmarkreplinfo 'ProblemTableName'
GO
5. use master
GO
6. sp_configure 'allow',1
GO
7. reconfigure with override
GO
8. use ProblemDatabaseName
GO
9. update sysobjects set replinfo = 0 where name = 'your_table_name'
GO
10. EXEC sp_configure 'allow',0
GO
11. reconfigure with override
GO

dah balik normal lagi. thanks !