all groups > sql server replication > august 2004 >
You're in the

sql server replication

group:

2PC transaction replication problem



Re: 2PC transaction replication problem Hilary Cotter
8/21/2004 7:59:21 AM
sql server replication: where are you seeing this message? DataGrid?

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


[quoted text, click to view]

Re: 2PC transaction replication problem Paul Ibison
8/21/2004 12:55:21 PM
KM,
can you do a search on hte publisher for the PK value of the row you are
changing. Presumably it is not there and sp_browsereplcmds on the
distributor should reveal a relevant delete statement.
HTH,
Paul Ibison

Re: 2PC transaction replication problem Hilary Cotter
8/21/2004 1:23:20 PM
try running this command in the distributor.

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


[quoted text, click to view]

2PC transaction replication problem krygim
8/21/2004 6:26:43 PM
I created a 2PC transaction replication on a simple database for testing.
Changes in the publisher are successfully replicated to the subscriber.
However, when changes are made to the subscriber, the following error
message is shown:



"Another user has modified the contents of this table or view; the database
row you are modifying no longer exists in the database."



Could somebody help to solve the problem?



Thanks in advance!



KM

Re: 2PC transaction replication problem Krygim
8/21/2004 10:58:44 PM
Hi Paul,

There are only 3 rows in my table. The PK values in the subscriber and
publisher are exactly the same. The PK column of both the subscriber and the
publisher are marked as Identity (Not For Replication). I got the same
message even if I add a new row in the subscriber.

In the Query Analyzer on the publishing database, I tried the
sp_browsereplcmds and got the message:
"Could not find stored procedure 'sp_browsereplcmds'."

KM


[quoted text, click to view]

Re: 2PC transaction replication problem Krygim
8/21/2004 11:06:46 PM
Hi Hilary,

I opened the subscriber database table by selecting "Open Table | Return All
Rows" in the Enterprise Manager. Made change to one of the rows. When I
tried to leave the row, a dialog box popped up which showed the message:

Another user has modified the contents of this table or view; the database
row you are modifying no longer exists in the database.
Database error: '[Microsoft][ODBC SQL Server Driver][SQL Server][OLE/DB
provider returned message: New transaction cannont enlist in the specified
transaction coordinator]...
..... The operation could not be performed because the OLE DB provider
'SQKOLEDB' was unable to begin a distributed transaction'

KM


[quoted text, click to view]

Re: 2PC transaction replication problem Paul Ibison
8/22/2004 10:01:41 AM
KM,
I wasn't very precise but by distributor I meant distribution database on
the distributor - the sp should be there. Please post back after running it
to tell us if the rows you refer to are have been modified on the publisher.
TIA,
Paul Ibison

Re: 2PC transaction replication problem Krygim
8/22/2004 10:59:45 AM
Hi Hilary,

I get the same message when running the command in both the distributor and
the subscriber.

KM


[quoted text, click to view]

Re: 2PC transaction replication problem Paul Ibison
8/22/2004 3:30:41 PM
Krygim,
everything you've done looks correct, but I've never heard of this before.
Can you run this:
sp_browsereplcmds
go
select db_name()
(just to check that you are in the correct database). If it returns
'distribution' then perhaps a service-pack install didn't succeed and you
could check sqlsp.log file from the c:\windows directory to see if this is
the case.
HTH,
Paul Ibison

Re: 2PC transaction replication problem Paul Ibison
8/22/2004 4:47:00 PM
KM,
it looks like something has gone wrong. The script instdist.sql creates the
distribution database and creates the procedure you now need, but somehow it
hasn't completely run. You could disable publishing and restart (sorry:)) or
you could get the procedure creation script from the file mentioned above
(install directory) and run it manually, hoping that something else isn't
missing.
HTH,
Paul Ibison

Re: 2PC transaction replication problem Krygim
8/22/2004 9:26:15 PM
Hi Paul,



I found the stored procedure in BOL. I think I must have done something
wrong. Please let me know if I have carried out the steps correctly or not:



1. In the Query Analyzer, connect to the distribution SQL server.

2. Select the distribution database in the dropdown list

3. Enter exec sp_browsereplcmds and press F5



The following message was displayed in the message pane:

Server: Msg 2812, Level 16, State 62, Line 1

Could not find stored procedure 'sp_browsereplcmds'.




Thanks in advance.

KM





[quoted text, click to view]

Re: 2PC transaction replication problem Krygim
8/22/2004 10:56:54 PM
Paul,

I ran the commands. On the result pane, I saw the name of the distribution
database. On the message pane, I saw:

Server: Msg 2812, Level 16, State 62, Line 1
Could not find stored procedure 'sp_browsereplcmds'.
(1 row(s) affected)

On the SQL Server Properties dialog, it shows:
Product: SQL Server Standard Edition
Product version: 8.00.760(SP3)

KM


[quoted text, click to view]

Re: 2PC transaction replication problem Krygim
8/22/2004 11:56:12 PM
Paul,

Thanks for your information. In my country, it is about midnight. I will go
to sleep and will try it tomorrow.

KM


[quoted text, click to view]

AddThis Social Bookmark Button