One of my clients have been receiving this error that is causing issues in their process. Basically, they are thinking the error is related to replication of stored procedures that they assume I messed up. I had to drop some stored procedures that was part of replication and in order to do that I had to remove them from replication and I did generate a new snapshot for synchronizing with the subscriber and it was from then on they saw this error popping up in one of their stored procedures which happened during the same day, but then later on Sunday it happened again for other stored procedures. Now, my question is this related to replication or there is something else to it. Client already mentioned that they did not make any changes at their end.
Sql-server – I am receiving the following error – The definition of object x has changed since it was compiled
sql serversql-server-2008-r2transactional-replication
Related Question
- Sql-server – SQL Server 2014 Transactional Replication Partition Switching
- SQL Server Mirroring – Definition of Object Changed Since Compiled on Failover to Mirror Database
- Sql-server – The EXECUTE permission was denied on the object ‘SPROC’, database ‘DATABASE’, schema ‘dbo’
- Sql-server – Sql Server replication: Initial snapshot for publication is not yet available
Best Answer
Modifying my answer based on the comment by @sepupic. Thank you for pointing out my mistake.
This error is generated if stored procedure definition changes while it is running.