且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获取ASP.NET Web应用程序中的进程状态

更新时间:2022-11-06 15:01:55

做一个首先选择COUNT(*)FROM table 并将变量记录存储在一个变量中。

然后使用任务或者 Timer 调用一个定期执行 SELECT COUNT(*)FROM table 的方法,计算出的数量记录并显示。
Do a SELECT COUNT(*) FROM table first and store the number of records in a variable.
Then use a Task or Timer to call a method that does a SELECT COUNT(*) FROM table on regular intervals, calculate the number of records and display that.