Hello,
I have created one stored procedure which accepts one input parameter. I want to call it asynchronously using Service Broker.
I have implemented all code with the help of below link:
http://rusanu.com/2009/08/18/passing-parameters-to-a-background-procedure/
If I run the example stored procedure which is given in to above link, it runs fine.
But when I run it for my stored procedure it disables the queue.
I tried to enable queue again :
ALTER QUEUE [queuename] WITH STATUS = ON;
Also I tried to execute activated stored procedure using dbo user. I checked logs as well to find the error which makes queue disabled automatically.
use myDB go execute as user = 'dbo'; go exec usp_AsyncExecActivated go revert; go
When I checked server logs it shows below error message.
Error: 50000, Unrecoverable error in procedure: 10772: The operation 'savepoint' is not supported with natively compiled stored procedures. Msg 50000, Level 1, State 60
When I searched for this error, I found that 'savepoint' operation is not supported by Natively compiled stored procedure. I am using Memory optimized table in my stored procedure.
Is there any work around for this operation ? As I have to use memory optimized table as per client's requirement.
Thank you,
Mittal Patel.