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 2005 Forums
 SQL Server Administration (2005)
 Replication - Primary Key

Author  Topic 

amsqlguy
Yak Posting Veteran

89 Posts

Posted - 2008-07-23 : 09:26:09
Guys,

I have to replicate a database, should all the tables in the Parent database have primary keys?

Thanks

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-23 : 09:30:24
Yes only for Transactional replication.
Go to Top of Page

BALLA
Starting Member

2 Posts

Posted - 2008-07-23 : 16:56:30
quote:
Originally posted by sodeep

Yes only for Transactional replication.




hey
i think
constraints and triggers are not for replication,
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-23 : 17:27:33
Primary key constraints are required on each of the tables that you'd like to replicate with transactional replication. So it's not just "should" but "required".

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -