 |
清空所有表的数据 |
热 ★★★ |
【字体:小 大】 |
|
清空所有表的数据 |
|
作者:北亚数据… 最新动态来源:本站原创 点击数: 更新时间:2011-6-21 |
declare @trun_name varchar(50) declare name_cursor cursor for select 'truncate table ' name from sysobjects where xtype='U' and status > 0 and name not like 'Temp_' and name not like 'HM_EM_OutOfPositionCommunicationR' open name_cursor fetch next from name_cursor into @trun_name while @@FETCH_STATUS = 0 begin print @trun_name '' exec (@trun_name '') fetch next from name_cursor into @trun_name end close name_cursor deallocate name_cursor |
最新动态录入:飘 责任编辑:飘 |
|
上一个最新动态: 大华监控硬盘录像机恢复程序2.0
下一个最新动态: DELL R710服务器数据恢复成功 |
【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |