merge replication identity conflict madness!!

merge replication identity conflict madness!!

Post by Tim » Wed, 19 Feb 2003 01:11:02



Hi all,

I have a database with integer identity columns as primary keys, starting at
1 and incrementing by 1.

When I set up merge replication (from sql 2000 to sql 2000) on 2 other
laptops, we get conflicts every time we synchronize.  And this conflict is
on the PK identity column.

Having read the archives someone said I have to manually change the seed
value of every primary key in the database, for every laptop that is
planning to synchronize. (100 tables, 20 laptop users = too much work!!!)

Please tell me this isn't the case!!

Please please point me in the right direction

ta

Tim

 
 
 

merge replication identity conflict madness!!

Post by John Gose [M » Wed, 19 Feb 2003 06:21:01


Tim,

Take a look at BOL Replication->Managing Identity Values.  What you
probably wanted to do was have SQL handle the ranges automatically.  This
is a property of the article (the little grey button to the right of the
table name) that allows you to set ranges for each computer to use.  
Unfortunately, it needs to be setup prior to any subscriptions being
created.

John Gose
MCDBA
Microsoft SQL Server Support

This posting is provided "AS IS", with no warranties, and confers no rights

Are you secure? For information about the Microsoft Strategic Technology
Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.

--------------------

| Subject: merge replication identity conflict madness!!
| Date: Mon, 17 Feb 2003 16:11:02 -0000
| Lines: 25
|
<Snip of Header Stuff>
|
| Hi all,
|
| I have a database with integer identity columns as primary keys, starting
at
| 1 and incrementing by 1.
|
| When I set up merge replication (from sql 2000 to sql 2000) on 2 other
| laptops, we get conflicts every time we synchronize.  And this conflict is
| on the PK identity column.
|
| Having read the archives someone said I have to manually change the seed
| value of every primary key in the database, for every laptop that is
| planning to synchronize. (100 tables, 20 laptop users = too much work!!!)
|
| Please tell me this isn't the case!!
|
| Please please point me in the right direction
|
|
|
| ta
|
|
| Tim
|
|
|

 
 
 

merge replication identity conflict madness!!

Post by Tim » Wed, 19 Feb 2003 17:34:57


thanks John,
my faith is sql server is restored!!!!

Tim



> Tim,

> Take a look at BOL Replication->Managing Identity Values.  What you
> probably wanted to do was have SQL handle the ranges automatically.  This
> is a property of the article (the little grey button to the right of the
> table name) that allows you to set ranges for each computer to use.
> Unfortunately, it needs to be setup prior to any subscriptions being
> created.

> John Gose
> MCDBA
> Microsoft SQL Server Support

> This posting is provided "AS IS", with no warranties, and confers no
rights

> Are you secure? For information about the Microsoft Strategic Technology
> Protection Program and to order your FREE Security Tool Kit, please visit
> http://www.microsoft.com/security.

> --------------------

> | Subject: merge replication identity conflict madness!!
> | Date: Mon, 17 Feb 2003 16:11:02 -0000
> | Lines: 25
> |
> <Snip of Header Stuff>
> |
> | Hi all,
> |
> | I have a database with integer identity columns as primary keys,
starting
> at
> | 1 and incrementing by 1.
> |
> | When I set up merge replication (from sql 2000 to sql 2000) on 2 other
> | laptops, we get conflicts every time we synchronize.  And this conflict
is
> | on the PK identity column.
> |
> | Having read the archives someone said I have to manually change the seed
> | value of every primary key in the database, for every laptop that is
> | planning to synchronize. (100 tables, 20 laptop users = too much
work!!!)
> |
> | Please tell me this isn't the case!!
> |
> | Please please point me in the right direction
> |
> |
> |
> | ta
> |
> |
> | Tim
> |
> |
> |

 
 
 

merge replication identity conflict madness!!

Post by Tim » Wed, 19 Feb 2003 18:09:10


not quite there yet....

the option to turn on automatic identity handling is grayed out, and
whatever I do I cannot make it available.  I have deleted all subscribers,
and recreated the publication with no joy.

am I missing something obvious again?

thanks

Tim


> thanks John,
> my faith is sql server is restored!!!!

> Tim



> > Tim,

> > Take a look at BOL Replication->Managing Identity Values.  What you
> > probably wanted to do was have SQL handle the ranges automatically.
This
> > is a property of the article (the little grey button to the right of the
> > table name) that allows you to set ranges for each computer to use.
> > Unfortunately, it needs to be setup prior to any subscriptions being
> > created.

> > John Gose
> > MCDBA
> > Microsoft SQL Server Support

> > This posting is provided "AS IS", with no warranties, and confers no
> rights

> > Are you secure? For information about the Microsoft Strategic Technology
> > Protection Program and to order your FREE Security Tool Kit, please
visit
> > http://www.microsoft.com/security.

> > --------------------

> > | Subject: merge replication identity conflict madness!!
> > | Date: Mon, 17 Feb 2003 16:11:02 -0000
> > | Lines: 25
> > |
> > <Snip of Header Stuff>
> > |
> > | Hi all,
> > |
> > | I have a database with integer identity columns as primary keys,
> starting
> > at
> > | 1 and incrementing by 1.
> > |
> > | When I set up merge replication (from sql 2000 to sql 2000) on 2 other
> > | laptops, we get conflicts every time we synchronize.  And this
conflict
> is
> > | on the PK identity column.
> > |
> > | Having read the archives someone said I have to manually change the
seed
> > | value of every primary key in the database, for every laptop that is
> > | planning to synchronize. (100 tables, 20 laptop users = too much
> work!!!)
> > |
> > | Please tell me this isn't the case!!
> > |
> > | Please please point me in the right direction
> > |
> > |
> > |
> > | ta
> > |
> > |
> > | Tim
> > |
> > |
> > |

 
 
 

merge replication identity conflict madness!!

Post by Tim » Wed, 19 Feb 2003 19:00:25


grrrr
found it

to make replication work, you have to set the option "not for replication"
on identity fields.  What a totally unobvious thing to have to do!!!

how come setting up Access to synchronise is so easy, and data changes are
replicated, and id columns are handled properly, yet sql server makes
replication look like an after thought.

Tim


> not quite there yet....

> the option to turn on automatic identity handling is grayed out, and
> whatever I do I cannot make it available.  I have deleted all subscribers,
> and recreated the publication with no joy.

> am I missing something obvious again?

> thanks

> Tim



> > thanks John,
> > my faith is sql server is restored!!!!

> > Tim



> > > Tim,

> > > Take a look at BOL Replication->Managing Identity Values.  What you
> > > probably wanted to do was have SQL handle the ranges automatically.
> This
> > > is a property of the article (the little grey button to the right of
the
> > > table name) that allows you to set ranges for each computer to use.
> > > Unfortunately, it needs to be setup prior to any subscriptions being
> > > created.

> > > John Gose
> > > MCDBA
> > > Microsoft SQL Server Support

> > > This posting is provided "AS IS", with no warranties, and confers no
> > rights

> > > Are you secure? For information about the Microsoft Strategic
Technology
> > > Protection Program and to order your FREE Security Tool Kit, please
> visit
> > > http://www.microsoft.com/security.

> > > --------------------

> > > | Subject: merge replication identity conflict madness!!
> > > | Date: Mon, 17 Feb 2003 16:11:02 -0000
> > > | Lines: 25
> > > |
> > > <Snip of Header Stuff>
> > > |
> > > | Hi all,
> > > |
> > > | I have a database with integer identity columns as primary keys,
> > starting
> > > at
> > > | 1 and incrementing by 1.
> > > |
> > > | When I set up merge replication (from sql 2000 to sql 2000) on 2
other
> > > | laptops, we get conflicts every time we synchronize.  And this
> conflict
> > is
> > > | on the PK identity column.
> > > |
> > > | Having read the archives someone said I have to manually change the
> seed
> > > | value of every primary key in the database, for every laptop that is
> > > | planning to synchronize. (100 tables, 20 laptop users = too much
> > work!!!)
> > > |
> > > | Please tell me this isn't the case!!
> > > |
> > > | Please please point me in the right direction
> > > |
> > > |
> > > |
> > > | ta
> > > |
> > > |
> > > | Tim
> > > |
> > > |
> > > |

 
 
 

merge replication identity conflict madness!!

Post by John Gose [M » Thu, 20 Feb 2003 07:08:02


Tim,

Glad to hear that you have resolved the identity issue.  Sorry that it was
such a trouble.

John Gose
MCDBA
Microsoft SQL Server Support

This posting is provided "AS IS", with no warranties, and confers no rights

Are you secure? For information about the Microsoft Strategic Technology
Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.

--------------------




| Subject: Re: merge replication identity conflict madness!!
| Date: Tue, 18 Feb 2003 10:00:25 -0000
| Lines: 115
|
<Snip of Header Stuff>
|
| grrrr
| found it
|
| to make replication work, you have to set the option "not for replication"
| on identity fields.  What a totally unobvious thing to have to do!!!
|
| how come setting up Access to synchronise is so easy, and data changes are
| replicated, and id columns are handled properly, yet sql server makes
| replication look like an after thought.
|
|
| Tim
|
|
|

| > not quite there yet....
| >
| > the option to turn on automatic identity handling is grayed out, and
| > whatever I do I cannot make it available.  I have deleted all
subscribers,
| > and recreated the publication with no joy.
| >
| > am I missing something obvious again?
| >
| >
| > thanks
| >
| > Tim
| >
| >


| > > thanks John,
| > > my faith is sql server is restored!!!!
| > >
| > >
| > > Tim
| > >
| > >


| > > > Tim,
| > > >
| > > > Take a look at BOL Replication->Managing Identity Values.  What you
| > > > probably wanted to do was have SQL handle the ranges automatically.
| > This
| > > > is a property of the article (the little grey button to the right of
| the
| > > > table name) that allows you to set ranges for each computer to use.
| > > > Unfortunately, it needs to be setup prior to any subscriptions being
| > > > created.
| > > >
| > > > John Gose
| > > > MCDBA
| > > > Microsoft SQL Server Support
| > > >
| > > > This posting is provided "AS IS", with no warranties, and confers no
| > > rights
| > > >
| > > > Are you secure? For information about the Microsoft Strategic
| Technology
| > > > Protection Program and to order your FREE Security Tool Kit, please
| > visit
| > > > http://www.microsoft.com/security.
| > > >
| > > >
| > > > --------------------

| > > > | Subject: merge replication identity conflict madness!!
| > > > | Date: Mon, 17 Feb 2003 16:11:02 -0000
| > > > | Lines: 25
| > > > |
| > > > <Snip of Header Stuff>
| > > > |
| > > > | Hi all,
| > > > |
| > > > | I have a database with integer identity columns as primary keys,
| > > starting
| > > > at
| > > > | 1 and incrementing by 1.
| > > > |
| > > > | When I set up merge replication (from sql 2000 to sql 2000) on 2
| other
| > > > | laptops, we get conflicts every time we synchronize.  And this
| > conflict
| > > is
| > > > | on the PK identity column.
| > > > |
| > > > | Having read the archives someone said I have to manually change
the
| > seed
| > > > | value of every primary key in the database, for every laptop that
is
| > > > | planning to synchronize. (100 tables, 20 laptop users = too much
| > > work!!!)
| > > > |
| > > > | Please tell me this isn't the case!!
| > > > |
| > > > | Please please point me in the right direction
| > > > |
| > > > |
| > > > |
| > > > | ta
| > > > |
| > > > |
| > > > | Tim
| > > > |
| > > > |
| > > > |
| > > >
| > >
| > >
| >
| >
|
|
|

 
 
 

1. merge replication conflict and identity range problem

can anyone tell me, why do i'm getting error, when the conflicts come, that
conflict can not be resolved with the current data, cause identity range is
full. it also says, that i should update identity range with stored
procedure sp_adjustpublisheridentityrange! but this procedure does nothing!
i have defined identity range for all artiles i use with replication, and
also set the to assign new identity range when the 80 percents of values is
used...
how can i maually set the new identity range for specific table?

thanks!

Gregor

2. Reading 100 rows at a time...

3. Conflict with Identity column in merge replication

4. new SQL mail question

5. Identity conflict with Merge replication

6. Client Locale - Help !!

7. Merge replication with identity value ranges using not for replication option

8. create database

9. Removing merge replication/conflicting triggers

10. Merge replication conflict problem

11. SP3 Merge Replication Conflict Woes

12. Merge Replication Conflict Viewer Authority

13. Merge Replication - Conflict problem