![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sqlServer
土豆衫
这个作者很懒,什么都没留下…
展开
-
监控数据库占用容量及存储剩余容量
USE [khcable_jn] GO /****** Object: StoredProcedure [dbo].[MonitoringDBCapacity] Script Date: 07/12/2018 14:43:09 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO /*******监控数据库占用容量及存...原创 2018-07-23 14:52:52 · 1416 阅读 · 0 评论 -
常用SQL总结
1、删除数据库中所有表的数据 exec sp_msforeachtable "truncate table ?" 2、删除数据库中所有的表 use 数据库名(是要删除表的所在的那个数据库的名称) GO declare @sql varchar(8000) while (select count(*) from sysobjects where type='U')>0 beg...转载 2018-12-14 11:57:57 · 105 阅读 · 0 评论