SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Replication issue - Never seen this before


Replication issue - Never seen this before

Author
Message
RatanDeep Saha
RatanDeep Saha
Right there with Babe
Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)

Group: General Forum Members
Points: 772 Visits: 693
When I tried to locate Xact Seqno for the article causing the issue .

I get this error , can any one help me to explain what could be the cause .


EXEC sp_browsereplcmds @xact_seqno_start = '0x00077C630003F4150005'
, @xact_seqno_end = '0x00077C630003F4150005'

-------------------------------------------------------------------------------------
(0 row(s) affected)
Message: Invalid attempt to read when no data is present.
Call Stack: at System.Data.SqlClient.SqlDataReaderSmi.EnsureOnRow(String operationName)
at System.Data.SqlClient.SqlDataReaderSmi.GetBytes(Int32 ordinal, Int64 fieldOffset, Byte[] buffer, Int32 bufferOffset, Int32 length)
at Microsoft.SqlServer.Replication.ReplCmdsReader.convert_command(Boolean& fFirstChuck_in_cmd, Int32& iParamMarker, ParamToken& tokenReader, Object[]& rgobj, SqlDataReader& reader)
at Microsoft.SqlServer.Replication.ReplCmdsReader.sp_printstatement(String strCmd)
Debug dump: cbTSQL: 1702127982 wParam: 0 iParam: 0 oDatum: 0 oNextToken: 0
<Reset />
RatanDeep Saha
RatanDeep Saha
Right there with Babe
Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)Right there with Babe (772 reputation)

Group: General Forum Members
Points: 772 Visits: 693
I dont know the cause of this like many SQL unaswered issues , but good part figured the solution :-)

Nothing tricky , found the xact_seqno from sp_browsereplcmds
1. Checked both the publisher and subscriber has the Ms_upd_XXXX data .
2. Removed the entry from ms_rep_commands table .
3. No sure if that helped much .
4. Removed the article from the Publication .
5 . Added back , ran snapshot for the single article .


Old method but issue was something new for me .
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search