Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Transactional Replication

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-10-20 : 08:23:12
Mala writes "Hi,

How can I set subscriber in transactional replication as read only database.


Regards,
Mala"

VyasKN
SQL Server MVP & SQLTeam MVY

313 Posts

Posted - 2003-10-20 : 08:43:12
You cannot explicitly mark the subscribing database as 'read only', because the replication agents need to be able to write to this database.

You need to implement the 'logical read-only' database using database permissions, and make sure no user or application writes to this database.

There are workarounds though, like having triggers on the tables, that rollback all changes done by users other than replication agents. Look into using the 'NOT FOR REPLICATION' property of triggers.

--
HTH,
Vyas
http://vyaskn.tripod.com
Go to Top of Page
   

- Advertisement -