views:

28

answers:

1

I have used triggers within a database .. like .. when record in table A is deleted then also delete the corresponding record in table B, C D .. e.c.t

In SQL Server, is there a way to send message to application from database using triggers ...

The scenario is ...

If same application ( .exe ) is opened by 2 users and both use the same database ... then is 1st user has deleted an item ... then 2nd user should see it immediately ... or something like that.

+1  A: 

You can use Query Notifications. See: MS Sql 2008 Query Notifications MS Sql 2005 Using Query Notifications With C#

thedugas
perfect ... thank you . ...
KK
@KK - since you are a new member, I thought it would be courteous to inform you if you don't know - when you think someone has answered your question, you should mark it as answered (click the check on the left side of the answer). Your accept rate is recorded and shown by your name when you post a question - if you have a high accept rate people will be more likely to answer your questions; if you have a low accept rate people will be reluctant to spend time giving you an answer. I in no way meant this post to signify that you should accept my answer - just being courteous and giving a tip.
thedugas