每日更新数据库。 [英] Update Database Daily .
问题描述
示例 -
包含多个表的数据库 - 我选择一个表名 - 酒店。
它有1000个条目。
假设今天在酒店表中添加了100个条目作为数据,这个过程在我的电脑上都是离线的。
我做什么,导出表格,打开在线数据库查找表格,删除所有条目,然后导入我提前导出的表,然后重新插入所有数据。这是我如何每天更新我的数据库表,
我尝试过在线条目从我的电脑,但它产生一个错误(最大用户连接)。所以我离线完成所有数据库处理,然后如上所述在线完成更改。
所以任何人都有任何想法。
Example -
Database containing several tables - i choose one table name - hotel.
it has 1000 entries in it .
Suppose today 100 entries are added as data in hotel table, all this process is offline on my pc .
what i do ,export the table , open online database find the table , delete all entries from it , then import the table which i exported early and re-insert all data again . This how i update my database tables daily ,
I Have Tried Online Entries From my pc but , it generate a error ( max user connection ) . So i do all database process offline and then changes are done online as mention above .
So anybody have any idea.
推荐答案
创建一个存储过程进行更新并使用SQL作业每天自动运行此过程
用于设置sql作业请点击此链接
< a href =http://msdn.microsoft.com/en-us/library/ms135739.aspx> http://msdn.microsoft.com/en-us/library/ms135739.aspx
希望这有帮助
Crate a stored procedure for updating and run this procedure automatically every day by using SQL job
for set up the sql job please follow this link
http://msdn.microsoft.com/en-us/library/ms135739.aspx
Hope this helps
您好,
请创建包含所有步骤的SSIS包(或如果您能提供更多详细信息,我可以帮助您。)
使用SQL Server代理安排软件包。
Hi,
Please create a SSIS package with all of your steps (or if you can give more details I can help you.)
Schedule the package with SQL Server Agent.
这篇关于每日更新数据库。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!