应用程序每隔十分钟需要连接数据库并删除阶段表中的记录 [英] Every ten minutes the application needs to connect database and delete records in stage table

查看:72
本文介绍了应用程序每隔十分钟需要连接数据库并删除阶段表中的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想每10分钟连接一次数据库,并检查数据库表中可用的任何数据并将其删除.
我需要创建Windows服务吗,如果是的话,请给我完整的代码和步骤,以安装Windows服务并执行它.
您能帮我解决这个问题吗?

谢谢
Sathish

Hi,
I want to connect database every 10 minutes and check any data available in database table and delete it.
Do i need to create windows service, if so please give me the complete code and steps how to install windows service and execute it.
Can you please help me on this issue?

Thanks
Sathish

推荐答案

请参阅我过去的解决方案:
使用计时器轮询数据库 [
Please see my past solution:
Polling Database with Timer[^].

—SA


这篇关于应用程序每隔十分钟需要连接数据库并删除阶段表中的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆