Hi All,
While I am setting up replication,my snapshot agent after it completes bulk copy its giving me below error
"Message: Conflicting locking hints are specified for table "dbo.employee". This may be caused by a conflicting hint specified for a view.
Command Text: SELECT TOP 1 0 FROM [dbo].[oemployeereplication] WITH (TABLOCK, HOLDLOCK)
Parameters:
Stack: at Microsoft.SqlServer.Replication.AgentCore.ReMapSqlException(SqlException e, SqlCommand command)
at Microsoft.SqlServer.Replication.AgentCore.AgentExecuteNonQuery(SqlCommand command, Int32 queryTimeout)
at Microsoft.SqlServer.Replication.AgentCore.ExecuteDiscardResults(CommandSetupDelegate commandSetupDelegate, Int32 queryTimeout)
I am doing replication from Indexed view as publisher and table as subscriber.