Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All.......

I am new in Asp.Net Web development..........

I want to generate database change notification using SignalR, for this, I am using SQL Server 2008 R2.

I am getting failure with following command

ALTER DATABASE SignalRDummy SET ENABLE_BROKER.

It says

"Msg 1205, Level 13, State 68, Line 1
Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed."

I have tried

SET DEADLOCK_PRIORITY LOW;

It doesnt work.

Thanks in advance.

Regards.
Posted
Updated 2-Jan-23 17:47pm

1 solution

hi, using this query for solve your Problem:
ALTER DATABASE SignalRDummy SET ENABLE_BROKER WITH ROLLBACK IMMEDIATE
 
Share this answer
 
Comments
Dave Kreskowiak 3-Jan-23 0:05am    
Considering the database was locked at the time the statement was run, executing your statement would have fallen to the same error.

Also, this was asked seven years ago.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900