We have a transactional replication and it has an error as given below.
Incorrect syntax near '*'.
if @@trancount > 0 rollback tran
(Transaction sequence number: 0x000209C200006B28000100000000, Command ID: 1)
I used the below query
use distribution
GO
exec sp_browsereplcmds '0x000209C200006B28000100000000'
It returns all the pending command around 1 lakh records.
How do I find which replicated command is causing the error so that I can delete it from the distribution database.
Please advice.