Showing posts with label conflict. Show all posts
Showing posts with label conflict. Show all posts

Monday, March 26, 2012

MSDE 2000 Replication Conflict

I am using MSDE 2000 for my replication. the problem is that althought at time creating publication it inserts GUID into every table but if one table in 2 nodes has same primary key, it inserts only one row ( accorrding to prority ). there are some Conflict Reslover methods that can be used for this purpose. i wanted to ask that is there any other way for me to resolve this conflict. i am asking for a new way because my database schema has been created and a lot of coding behalf of that schema has been done.

I'd be thankful if you guide me.
Regards,

Are you trying to insert the same primary key at both nodes? In your case, conflict resolver won't work for you because although you have inserted at both nodes, they are treated as different rows with different rowguid. What are you trying to achieve in this scenario? Do rows with same primary key stand for the same thing in your business scenario?

You can also refer to this post to see if you have the same problem: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=509453&SiteID=1

Hope it helps

Wanwen

|||Dear Wanwen.

i have a scenario as follows.

I have one publisher and two subscribers. a table called "Companies" is my article. That "Companies" table has a primary key column called CompanyId which is an Identity Row. Now when i insert data into subscribers i will have two rows with same Primary key. For Example two rows with CompanyId 1. Now at time of merging data, i want both companyIds ( both rows with Pk 1 ) be present in publisher. But at reality it does not happen.

What should i do?! because i need both rows at publisher .

Note: i have to mention that at time of creating Subscription GUID is included by SQL Server. So why is it not working?!

Regards,|||

In your case, you need to use identity range management. Please refer to BOL topic: Replicating Identity Columns. Basically, to use identity columns in a replication topology that has updates at more than one node, each node in the replication topology must use a different range of identity values, so that duplicates do not occur. You could use auto for Identity Range Management Option and specify @.pub_identity_range, @.identity_range and @.threshold.

Rowguid column added by replication is for change tracking, conflict detecting and resolving, not for failure to apply changes due to constraint.

Hope it helps.

Wanwen

sql

Monday, February 20, 2012

MSDB Corrupt?

[298] SQLServer Error: 446, Cannot resolve collation conflict for equal
to operation. [SQLSTATE 42000]
I keep getting this from SQL Agent. I restored an msdb database from an
old SQL Server and i am now finding out that it had a different
collation on it. how do i fix the msdb?in sql2000 you can change the collation of a column and
database. Read "changing collations" in sql BOL.
>--Original Message--
>[298] SQLServer Error: 446, Cannot resolve collation
conflict for equal
>to operation. [SQLSTATE 42000]
>I keep getting this from SQL Agent. I restored an msdb
database from an
>old SQL Server and i am now finding out that it had a
different
>collation on it. how do i fix the msdb?
>.
>|||Is there anyway to completely rebuild msdb (get a fresh one?)
anonymous@.discussions.microsoft.com wrote:
> in sql2000 you can change the collation of a column and
> database. Read "changing collations" in sql BOL.
>
>>--Original Message--
>>[298] SQLServer Error: 446, Cannot resolve collation
> conflict for equal
>>to operation. [SQLSTATE 42000]
>>I keep getting this from SQL Agent. I restored an msdb
> database from an
>>old SQL Server and i am now finding out that it had a
> different
>>collation on it. how do i fix the msdb?
>>.|||I know there was a rebuildmsdb utility in SQL &. You could drop msdb
and create msdb again, then run a utility to create all the tables and
procedures. is there one for sql 2000?
anonymous@.discussions.microsoft.com wrote:
> in sql2000 you can change the collation of a column and
> database. Read "changing collations" in sql BOL.
>
>>--Original Message--
>>[298] SQLServer Error: 446, Cannot resolve collation
> conflict for equal
>>to operation. [SQLSTATE 42000]
>>I keep getting this from SQL Agent. I restored an msdb
> database from an
>>old SQL Server and i am now finding out that it had a
> different
>>collation on it. how do i fix the msdb?
>>.|||the following article should also apply to sql2000.
http://support.microsoft.com/default.aspx?scid=kb;en-
us;238822
>--Original Message--
>I know there was a rebuildmsdb utility in SQL &. You
could drop msdb
>and create msdb again, then run a utility to create all
the tables and
>procedures. is there one for sql 2000?
>
>anonymous@.discussions.microsoft.com wrote:
>> in sql2000 you can change the collation of a column and
>> database. Read "changing collations" in sql BOL.
>>
>>--Original Message--
>>[298] SQLServer Error: 446, Cannot resolve collation
>> conflict for equal
>>to operation. [SQLSTATE 42000]
>>I keep getting this from SQL Agent. I restored an msdb
>> database from an
>>old SQL Server and i am now finding out that it had a
>> different
>>collation on it. how do i fix the msdb?
>>.
>.
>|||> the following article should also apply to sql2000.
That is only the repository, not the whole msdb.
instmsdb.sql will build msdb. But search KB and the net on instruction on how to use it first.
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
<anonymous@.discussions.microsoft.com> wrote in message
news:037f01c39e5c$ff4a5ff0$a301280a@.phx.gbl...
> the following article should also apply to sql2000.
> http://support.microsoft.com/default.aspx?scid=kb;en-
> us;238822
> >--Original Message--
> >I know there was a rebuildmsdb utility in SQL &. You
> could drop msdb
> >and create msdb again, then run a utility to create all
> the tables and
> >procedures. is there one for sql 2000?
> >
> >
> >anonymous@.discussions.microsoft.com wrote:
> >
> >> in sql2000 you can change the collation of a column and
> >> database. Read "changing collations" in sql BOL.
> >>
> >>
> >>
> >>--Original Message--
> >>[298] SQLServer Error: 446, Cannot resolve collation
> >>
> >> conflict for equal
> >>
> >>to operation. [SQLSTATE 42000]
> >>
> >>I keep getting this from SQL Agent. I restored an msdb
> >>
> >> database from an
> >>
> >>old SQL Server and i am now finding out that it had a
> >>
> >> different
> >>
> >>collation on it. how do i fix the msdb?
> >>
> >>.
> >>
> >
> >.
> >