昂贵地检查数据库 [英] checking a database costantly
本文介绍了昂贵地检查数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,伙计们,我是这个东西的新手,也是vb.net的新手,我对vb.net有疑问,我的问题是------
我想在vb.net中制作一个按时间(1小时)检查数据库表时间的程序,并执行从表名中选择count(*)"之类的命令.
请查看我过去对相关问题的回答:
使用计时器轮询数据库 [ google [计时器类. [ ^ ]
hello, Guys I am new to this stuff and also new to vb.net, i have a question about vb.net, My problem is ------
i want to make a program in vb.net that check database table time by time(1 hour), and execute command like "select count(*) from tablename".
解决方案
Please see my past answer to a related question:
Polling Database with Timer[^].
—SA
If you''re having trouble figuring out how to connect to the database and run your SQL command, you might want to start with a tutorial. You can find some on google[^].
As stated in the comments, you probably will want to use a timer control in order to run your SQL every hour. For that you should research the timer class on MSDN.[^]
这篇关于昂贵地检查数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文