Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6895051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:51:34+00:00 2026-05-27T06:51:34+00:00

I am creating an application with Sql cached dependency. For this i enabled the

  • 0

I am creating an application with Sql cached dependency.

For this i enabled the broker by

Alter database test ENABLE_BROKER

After i add two new tables to the database.

But i found that i am not able to get any notification services for the new tables that i added.

Even i use

Alter datatbase test New_Broker

THis command keeps on running so i cancel it without any success.

Can you please specify what i am missing

Any help is apprciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:51:35+00:00Added an answer on May 27, 2026 at 6:51 am

    It seems like you’re asking two questions:

    1. How to prevent SET ENABLE_BROKER from hanging

      ALTER DATABASE [YourDBName] SET ENABLE_BROKER WITH ROLLBACK IMMEDIATE

    2. Can you get notified by Service Broker when the schema changes?

    Notifications are for existing tables only. This might lead you to consider trying to register a dependency against sys.tables, but system views and tables are not allowed in a query for notifications.

    You should be able to work around this by setting up a DDL trigger that inserts into a special table, and then issue queries against that table. For example:

    CREATE TRIGGER [MyTrigger] ON DATABASE AFTER CREATE_TABLE AS ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a Windows forms application and my SQL Server database is on
I am creating a window application that need to use sql server database. I
Situation I'm creating a C#/WPF 4 application using a SQL Compact Edition database as
Im creating an application, wich will conect to several sql database and get some
I am creating bank application project in this project i am using sql server2008
I have a C# Application I am creating that stores all data in SQL
We currently deploy web applications by creating a database and running SQL scripts through
I'm creating an application that I want to run on either MySQL or SQL
I am creating a desktop application that stores rich text documents to a SQL
I am creating an application that tracks some specific performance-related statistics from SQL Server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.