Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wanted to replicate my database across 2 servers both using sql server 2005. The problem is that the main server have both 'User' and 'Admin' data in a table. At the other end , I want to replicate the entire database but the 'Admin' data should not be replicated.

Is there a way to solve this problem ? Either by configuring the replication or by manual tweaks.

Any help is appreciated.


share|improve this question
up vote 1 down vote accepted

Walk through the replication setup wizard. After you select the tables you want to publish, there is an entire screen dedicated to filtering your data.

alt text

Click Add, then pick your table and supply the WHERE clause

alt text

share|improve this answer
Thanks KenJ I think this ought to solve the issue. Just one more question can I also give Delete,Insert,Update command along with the select command in filter statement ? – Hakim Dec 20 '10 at 8:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.