每天备份数据库中的表

declare @sql varchar(8000)
set @sql='SELECT * into pond_history_temp'+convert(varchar(10),getdate(),112) +' FROM gms.dbo.pond_history_temp '
exec(@sql)

posted @ 2014-03-31 09:16  withoutaword  阅读(124)  评论(0编辑  收藏  举报