SqlQueryNotificationStoredProcedure

  • Saw multiple stored procedures with names starting like below

    SqlQueryNotificationStoredProcedure-

    can anyone help me understand why ? Read that this occurs as part of notification, was wondering why this comes in a different schema other than dbo. and is it because of database mail. We are using SignalR but have a different database for that.

  • Can anyone help me on this Please

  • I usually see them with apps that are using SqlDependency and service broker.

    Sue

  • Sue_H (10/27/2016)


    I usually see them with apps that are using SqlDependency and service broker.

    Sue

    Thanks Sue.

    Can i delete those procedures? Its creation date is showing 1 year old.

  • Rechana Rajan (10/31/2016)


    Sue_H (10/27/2016)


    I usually see them with apps that are using SqlDependency and service broker.

    Sue

    Thanks Sue.

    Can i delete those procedures? Its creation date is showing 1 year old.

    Just because it was created a year ago, doesn't mean it isn't used.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • Thom A (10/31/2016)


    Rechana Rajan (10/31/2016)


    Sue_H (10/27/2016)


    I usually see them with apps that are using SqlDependency and service broker.

    Sue

    Thanks Sue.

    Can i delete those procedures? Its creation date is showing 1 year old.

    Just because it was created a year ago, doesn't mean it isn't used.

    Agreed. I (and most others, I'd imagine) have lots of things over 1 year old that are still in use.

  • Ed Wagner (10/31/2016)


    Thom A (10/31/2016)


    Rechana Rajan (10/31/2016)


    Sue_H (10/27/2016)


    I usually see them with apps that are using SqlDependency and service broker.

    Sue

    Thanks Sue.

    Can i delete those procedures? Its creation date is showing 1 year old.

    Just because it was created a year ago, doesn't mean it isn't used.

    Agreed. I (and most others, I'd imagine) have lots of things over 1 year old that are still in use.

    I asked this because as per my understanding these procedures are not supposed to stay in DB for a long time. Please correct me if i am wrong.

  • Rechana Rajan (10/31/2016)


    Ed Wagner (10/31/2016)


    Thom A (10/31/2016)


    Rechana Rajan (10/31/2016)


    Sue_H (10/27/2016)


    I usually see them with apps that are using SqlDependency and service broker.

    Sue

    Thanks Sue.

    Can i delete those procedures? Its creation date is showing 1 year old.

    Just because it was created a year ago, doesn't mean it isn't used.

    Agreed. I (and most others, I'd imagine) have lots of things over 1 year old that are still in use.

    I asked this because as per my understanding these procedures are not supposed to stay in DB for a long time. Please correct me if i am wrong.

    Unless it was created by an individual trying to be clever.

    create procedure [SqlQueryNotificationStoredProcedure-Test]

    as

    begin

    select GETDATE();

    end;

  • Rechana Rajan (10/31/2016)


    Sue_H (10/27/2016)


    I usually see them with apps that are using SqlDependency and service broker.

    Sue

    Thanks Sue.

    Can i delete those procedures? Its creation date is showing 1 year old.

    Typically they won't stay around that long but it doesn't necessarily mean they aren't in use. And on the other hand, the stop method for SQL Dependency objects doesn't always work too well. Do you know of apps using Broker Services against the database? Do you have any queues associated with the stored procedures (check the GUIDs appended to the names of the stored procedures and queues)?

    select *

    from sys.service_queues

    Do you have receives occurring for the queues?

    select *

    from sys.dm_broker_queue_monitors

    You'd probably want to do some poking around and check with the application group to see if these are active.

    Sue

  • Sue_H (10/31/2016)


    Rechana Rajan (10/31/2016)


    Sue_H (10/27/2016)


    I usually see them with apps that are using SqlDependency and service broker.

    Sue

    Thanks Sue.

    Can i delete those procedures? Its creation date is showing 1 year old.

    Typically they won't stay around that long but it doesn't necessarily mean they aren't in use. And on the other hand, the stop method for SQL Dependency objects doesn't always work too well. Do you know of apps using Broker Services against the database? Do you have any queues associated with the stored procedures (check the GUIDs appended to the names of the stored procedures and queues)?

    select *

    from sys.service_queues

    Do you have receives occurring for the queues?

    select *

    from sys.dm_broker_queue_monitors

    You'd probably want to do some poking around and check with the application group to see if these are active.

    Sue

    Thanks Sue

Viewing 10 posts - 1 through 9 (of 9 total)

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