简体   繁体   中英

Send notification from C# winform application to another user?

I have created an aplication using c# winforms and database sql server 2008 R2.

This application will be installed on 10 machines.

Database is installed on server which interacts with all the users.

Now one user(Admin) want to send a notification on button click to all the 9 users if a particular table in the database is inserted with a record.

And all 9 users will get the notification in the label to "Please update."

Can any body help me with this.

Thanks..

You can use the SqlDependency class to do this, it requires Service Broker, but handles most of it for your automatically; once setup, your application will fire an event when a watched table changes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM