Link to home
Start Free TrialLog in
Avatar of michaelpg
michaelpg

asked on

Snapshot Replication\Primary Keys

Hi There

I have a table being replicated using snapshot replication.
The table has a primary key, on the subscriber the index of the primary key is replcated but only has an index it is no loner a primary key on the subscriber.
Is there anyway i can transfer the primary key constraint with snapshot replication?

Thanx
Avatar of michaelpg
michaelpg

ASKER

Let me expand on the problem.
Server A is our OLTP system, i use snapshot replication to a developement environment once a week on a sunday night to Server B.
I then want to use transactional replication from Server B to Server C for other purposes.Problem is when the snapshot replication happens to Server B the primary key constraints are not transferred, i cannot implement transactional replication without primary keys from Server B to Server C?

If i make the index a primary key as soon as the next snapshot happens it becomes a normal index again even though i am not dropping the table at the subscriber only deleting all data?

Any advice?
ASKER CERTIFIED SOLUTION
Avatar of Torrwin
Torrwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No way , i saw that option but i thought it only referred to foreign keys, i should have just tried it anyway.
Thanx