简体   繁体   English

如何同步通知C#客户端SQL服务器数据库的任何数据变化

[英]How to synchronously notify C# client of any data changes in a SQL Server database

I have a desktop application running on multiple PCs.我有一个在多台 PC 上运行的桌面应用程序。 When I insert a new record, how to update other client's file_Id C# SQL Server textbox?当我插入一条新记录时,如何更新其他客户端的file_Id C# SQL 服务器文本框? Is there any method or trigger that SQL Server notifies the client of any data that has changed? SQL 服务器是否有任何方法或触发器通知客户端任何已更改的数据?

There is no such thing, you might wanna check the tables on an interval of let's say 2 seconds.没有这样的事情,你可能想每隔 2 秒检查一次表格。 SQLs are a protocol for storing data, not data communication. SQL 是一种用于存储数据的协议,而不是数据通信。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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