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 126011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:15:00+00:00 2026-05-11T05:15:00+00:00

Is it possible to trigger an action in Windows Service, or is it possible

  • 0

Is it possible to trigger an action in Windows Service, or is it possible to raise an event that can be caught in a Service from a stored procedure.

If you imagine a service runs every 5 minutes thats performs some action. What if something happens in a database or a stored procedure is executed and I want to trigger this action earlier than the 5 minutes.

Does anybody have any ideas?

Thanks

Ed

  • 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. 2026-05-11T05:15:00+00:00Added an answer on May 11, 2026 at 5:15 am

    Following on from Mehrdad’s comments, I was able to solve the problem using the SqlDependancy Class in the .NET framework.

    This Class allows you to register a SQL query and connection with it, when the result of that query changes an event is raised to indicate a change in the data.

    This allowed me to catch data changes almost instantaneously and deal with appropriately.

    In order to use this Class you will need to Enable Query Notifications on the database you wish to query see: Enabling Query Notifications

    A good example of how to use this class in a Windows Application is found here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How do you trigger javascript functions from flash? Possible Duplicate: How do
Is it possible to create a trigger that will not be in a transaction?
Is it possible to to programmatically trigger a postback from server code in ASP.NET?
Is it possible to use JavaScript to trigger a Flash object's context-menu 'Print' action?
In javascript is it possible to trigger an action when a element (for example
I know that functions can be stored on html attributes for specific events (e.g.
is it possible to trigger a key event on the DOMWindow or DOMDocument in
Is it possible to make it so that the user can click on an
Is it possible to trigger a PHP function by just clicking a link? Or
Is it possible to trigger a JavaScript function when a user tries to reload

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.