Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Identity columns

 
   Database Forums (Home) -> Replication RSS
Next:  Is there a way to automatically relink linked tab..  
Author Message
Darin

External


Since: Nov 08, 2007
Posts: 47



(Msg. 1) Posted: Tue Nov 11, 2008 6:32 pm
Post subject: Identity columns
Archived from groups: microsoft>public>sqlserver>replication (more info?)

I know a lot of discussion has gone on about identity columns for Merge
replication.

We handle it by just using different identity seeds and increment for
each server (publisher and subscriber) and setting the not for
rpelication to true.

Well, i am now getting tired of having to set this up for our more
customers that are replicating.

We have over 100 tables that have identity columns, but we have a few
that are tied together (meaning chst_id in one table matches cihs_histid
in another table to tie the two together). So, what is the best way to
handle these?

The tables that i don't care about the identity column (it is strickly
used as the primary unique key) i could let SQL handle those (but i am
not too sure how to tell SQL to handle these columns itself), but the
other tables that the two are tied together by an identity column - how
should those be handled?

Darin

*** Sent via Developersdex http://www.developersdex.com ***

 >> Stay informed about: Identity columns 
Back to top
Login to vote
Paul Ibison

External


Since: Oct 03, 2008
Posts: 35



(Msg. 2) Posted: Thu Nov 13, 2008 12:05 am
Post subject: RE: Identity columns [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Darin,
in the case of chst_id and cihs_histid are both actual identities - I would
have thought that one would be an identity PK and the other a non-identity FK
(or also a PK for a 1:1 relationship). If they are not both identities then
the automatic range management will be fine, but if they are, can you explain
a little more about the architecture.
Cheers,
Paul Ibison, www.replicationanswers.com

 >> Stay informed about: Identity columns 
Back to top
Login to vote
Darin

External


Since: Nov 08, 2007
Posts: 47



(Msg. 3) Posted: Fri Nov 14, 2008 1:04 pm
Post subject: RE: Identity columns [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

chst_id is the identity PK from ARHistory, cihs_histid is not an
identity column in ARInvoiceHistory, it is just a pointer back to the
chst_id (basically an FK, but we don't have that tie forced).
ARInvoiceHistory has an identity PK cihs_id.

Darin

*** Sent via Developersdex http://www.developersdex.com ***
 >> Stay informed about: Identity columns 
Back to top
Login to vote
Paul Ibison

External


Since: Oct 03, 2008
Posts: 35



(Msg. 4) Posted: Fri Nov 14, 2008 1:26 pm
Post subject: RE: Identity columns [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Darin,
perhaps I'm still missing something then - I don't see why automatic
identity range management on all your identity columns is not a viable option?
Cheers,
Paul Ibison
 >> Stay informed about: Identity columns 
Back to top
Login to vote
Display posts from previous:   
   Database Forums (Home) -> Replication All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]