all groups > sql server replication > september 2006 >
You're in the

sql server replication

group:

Transactional replication question


Transactional replication question Chris
9/12/2006 9:45:02 PM
sql server replication:
Hi,
I am trying to replicate a table which has an identity column (first column)
as the primary key. The table replicates fine, however, the key is removed. I
manually placed the key on the replicated table but when replication is ran
again the gey is removed. Can I set transactional replication to copy the
identity column as is, as the primary key?

Re: Transactional replication question Paul Ibison
9/13/2006 12:00:00 AM
Chris - why do you need the identity column, if the subscriber is RO? If it
is a high-availability solution, then I'd advise setting up queued updating
subscribers, where the identity attribute, PKs and stored procedure
amendments will all be taken care of.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com

Re: Transactional replication question Hilary Cotter
9/13/2006 5:48:02 AM
If you select the option to replicate DRI the identity key will be on the
subscriber.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Re: Transactional replication question Chris
9/13/2006 9:39:01 AM
basically what I am trying to accomplish is to copy an exact replica to a
remote OLAP server.

[quoted text, click to view]
Re: Transactional replication question Paul Ibison
9/14/2006 12:00:00 AM
If the remote OLAP server is not RO, ie it is something other than a
reporting server, you'll usually have problems if the replication setup is
not bidirectional.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com



AddThis Social Bookmark Button