Quantcast
Channel: SQL Service Broker forum
Viewing all articles
Browse latest Browse all 461

Reg Service broker Issue

$
0
0

HI,

I have a Requirement that If a table gets changed that has to be initimated to Application ,So I used Sqldependency concept in my DB server  by enabling Service broker .

That seems to be working ,But I see some thing weird like some open transactions is always running in my DB.

I did use dbcc opentran() to check the open transaction .The spid's are like 31s or 16s.That 's'word is appeneded to every spid.

--Dbcc opentran()  output

---------------------

Oldest active transaction:
    SPID (server process ID): 16s
    UID (user ID) : -1
    Name          : user_transaction
    LSN           : (4024663:5472:281)
    Start time    : Dec 10 2014 11:22:49:860AM
    SID           : 0x01

if i try to check the profiler to find out what is running .its shows as

(@p2 int)BEGIN CONVERSATION TIMER ('f6b1ab5e-0a6b-e411-a336-24b6fdd23090') TIMEOUT = 120; 
WAITFOR(RECEIVE TOP (1) message_type_name, conversation_handle, cast(message_body AS XML) as message_body 
from [SqlQueryNotificationService-061e2080-cd43-4dad-990b-50dacd3cb2d5]), TIMEOUT @p2;

Also the windows log error logs in the evetvwr thorws an error everysecond 

The activated proc '[dbo].[SqlQueryNotificationStoredProcedure-9a9cb9f7-138a-4097-92ad-bf294f808773]' running on queue 'LycaMoney_FR_Devteam.dbo.SqlQueryNotificationService-9a9cb9f7-138a-4097-92ad-bf294f808773' output the following:  'The user does not have permission to perform this action.'

These kind of activities making my DB slow and tables inaccessible..

PLease advice me to get rid of these.


Viewing all articles
Browse latest Browse all 461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>