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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:27:53+00:00 2026-05-20T16:27:53+00:00

After much searching on Service Broker, I came across this question and answer :

  • 0

After much searching on Service Broker, I came across this question and answer:

My scenario is similar to the one mentioned there, in that I have a SQL trigger on a table, and in this trigger I’m calling xp_cmdshell to pass primary key information to an external exe.

I can see the value of setting up a Service Broker queue and service instead of using a trigger on a table. As I understand it, the activation sproc that I set up to process messages in the queue would now contain my call to xp_cmdshell.

However, I can’t figure out how to hook up a “change to data in a table” event as the triggering event. I would expect the CREATE EVENT NOTIFICATION clause to have an ON TABLE [x] FOR [INSERT|UPDATE] part to it, but it does not.

Any pointers would be appreciated.

  • 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-20T16:27:54+00:00Added an answer on May 20, 2026 at 4:27 pm

    The link you provided actually gives a great answer to your question. As described here, event notification feature is really meant for DDL and database state changes. What you want is probably to stick with triggers, but make the xp_cmdshell call asynchronous. I really don’t think any better answer can be provided than the one Remus gave to the linked question.

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

Sidebar

Related Questions

This might be a very simple question but after much searching on different forums
After much searching and trials, I am stuck... I have two classes, one is
After much searching the answer seems to be no, but I thought I'd ask
It appears after much searching that there seems to be a common problem when
After Much searching I have decided to ask my first stack overflow question: View
After much searching, it doesn't seem like there's any straightforward explanation of how to
I'm not having much luck searching for this answer, as I think that I
A very brief question. After much searching I couldn't find a function to calculate
After much searching and googling I am coming back to the well. I have
After much searching, I found the download for the eclipse version of jalopy .

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.