FIX: The Log Reader Agent skips some transactions when the Log Reader Agent runs to replicate transactions for a transactional replication in SQL Server 2005 and in SQL Server 2008

Article translations Article translations
Article ID: 959001 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

When the Log Reader Agent runs to replicate transactions for a transactional replication in Microsoft SQL Server 2005 or in Microsoft SQL Server 2008, the Log Reader Agent skips some transactions. This problem occurs when the following conditions are true:
  • A rebuild index command is running against the published database.
  • The rebuild index command is running in another database context.
For example, this problem occurs when you run the following statements to run the rebuild index command in the context of the master database:
USE master
GO
ALTER INDEX <Index Name> ON [<Published Database Name>].[<Article Name>]
REBUILD ;
GO

RESOLUTION

Service pack information for SQL Server 2005

To resolve this problem, obtain the latest service pack for SQL Server 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
913089 How to obtain the latest service pack for SQL Server 2005

Service pack information for SQL Server 2008

To resolve this problem, obtain the latest service pack for SQL Server 2008. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
968382 How to obtain the latest service pack for SQL Server 2008

WORKAROUND

To work around this issue, make sure that you are running the rebuild index command under the context of the published database. For example, run the following statements to run the rebuild index command in the context of the published database:
USE <Published Database Name>
GO
ALTER INDEX <Index Name> ON [<Published Database Name>].[<Article Name>]
REBUILD ;
GO

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in SQL Server 2005 Service Pack 3 for SQL Server 2005.
This problem was first corrected in SQL Server 2008 Service Pack 1 for SQL Server 2008.

MORE INFORMATION

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 959001 - Last Review: April 7, 2009 - Revision: 2.0
APPLIES TO
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Standard X64 Edition
  • Microsoft SQL Server 2005 Standard Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Enterprise X64 Edition
  • Microsoft SQL Server 2005 Enterprise Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Workgroup Edition
  • Microsoft SQL Server 2008 Developer
  • Microsoft SQL Server 2008 Enterprise
  • Microsoft SQL Server 2008 Standard
  • Microsoft SQL Server 2008 Web
  • Microsoft SQL Server 2008 Workgroup
Keywords: 
kbsql2005repl kbtshoot kbexpertiseadvanced kbfix kbbug KB959001

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com