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)
 2 different replication method on one db

Author  Topic 

kenchee
Starting Member

49 Posts

Posted - 2007-08-21 : 22:58:34
Hi,
is it possible to have a snapshot replication and transactional replication done on one database. The reason i'm asking is that if i were to just use transactional replication, some of the tables does not have primary key on them, so they cannot be replicated, hence using the snapshot to grab all of the tables that cannot be replicated by the transactional replication. is that possible or have i got the whole concept wrong. Sorry, but i'm new to replication. or is there a better way of doing thing?
Thanks

Ken

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-08-21 : 23:08:20
It's possible. Or you can set transaction replication for tables with pkey and snapshot replication for tables without pkey.
Go to Top of Page

kenchee
Starting Member

49 Posts

Posted - 2007-08-22 : 18:50:01
thanks.. will give that a go.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-08-22 : 18:58:37
Why don't you have primary keys on these tables? If you don't have a natural key on the table, why not add a surrogate key such as an identity column?

There are very few reasons where tables should not have primary keys. The primary reason would be staging tables that are used for importing data.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -