如何自动每天将数据插入数据库 [英] How can I insert data into database everyday automatically

查看:166
本文介绍了如何自动每天将数据插入数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生们或女士们,

我想尝试每天自动将数据插入数据库。我应该尝试什么?

谢谢

Dear Sirs or Madams,
I would like to try to insert data automatically into database everyday. What things should I try?
Thank You

推荐答案

如果您使用的是完整版的Sql Server(不是Express),那么你可以使用 SQL Server代理 [ ^ ]来安排操作。



如果您正在使用Express,那么您可以使用 Windows Scheduler [< a href =http://windows.microsoft.com/en-au/windows/schedule-task#1TC=windows-7target =_ blanktitle =新窗口> ^ ]运行任务并使用适当的命令行工具,例如 sqlcmd [ ^ ]执行数据库操作。
If you're using a full version of Sql Server (not Express), you can use SQL Server Agent[^] to schedule operations.

If you're using Express, then you can used Windows Scheduler[^] to run a task and use appropriate command line tools such as sqlcmd[^] to execute database operations.


我想在asp.net网站启动时开始查询,并在没有事件的情况下自动将数据自动插入数据库。
I would like to start query at the time of asp.net website starting and insert data automatically into database everyday without event.


这篇关于如何自动每天将数据插入数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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