Always on Read only Replica- SP Execution Error

  • Hello Folks,

    We have always on setup in our environment with read only replica. The primary database has 2 schema one is a dbo and other xyz. We have some store procs created in dbo schema and xyz schema. These store procs are being used by SSRS reports to retrieve the data (select only) no data changes will be made.

    when we run the store proc from the read only server the storeprocs in the dbo schema run fine but xyz schema are failing with the message saying failed to update the database as this is a read only !!!!

    i recreated the same proc in dbo schema and it works fine.... can anyone help with this ?

  • That's strange. Would you mind posting the stored proc?

    Also, if possible use a profiler trace on DR to see what is triggering the error

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply