且构网

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

每10个通讯C#和sql服务器

更新时间:2023-02-07 20:46:12

如果我正确理解了您的问题,则希望开始更新,然后每10秒显示进度消息.

您可以使进行更新的存储过程将某种状态指示符写入表,然后从应用程序的线程中每隔10秒检查一次状态指示符.

那就是我首先尝试的方式.
If I understand your question correctly, you want to start the update, and then show progress messages every 10 seconds.

You could make the stored proc that''s doing the update write a status indicator of some kind to a table, and from a thread in your app, check that status indicator every 10 seconds.

That''s the way I''d try it first.


我认为我应该使用TraceServer类.对吧?
I think I should use TraceServer class. right?