开发者

Message from SQL Server database to application when something changes in database

开发者 https://www.devze.com 2022-12-20 00:59 出处:网络
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

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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消