摘要: 通过游标和SP_SPACEUSED来查看当前库所有表数据行、已分配空间总量、数据使用总量、索引使用总量、已分配但未使用总量 1 if OBJECT_ID ('tempdb..#temp') is not null 2 drop table #temp 3 go 4 CREATE TABLE #tem... 阅读全文
posted @ 2014-06-17 17:20 呜呼哀哉嘎嘣脆 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 查看指定帐号的授权信息 1 select OBJECT_NAME (id), USER_NAME (uid), 2 case action 3 when 193 then 'select' 4 when 195 then 'insert' 5 when 196 then 'delete' 6 whe... 阅读全文
posted @ 2014-06-17 17:07 呜呼哀哉嘎嘣脆 阅读(122) 评论(0) 推荐(0) 编辑
摘要: select OBJECT_NAME (id), USER_NAME (uid),case actionwhen 193 then 'select'when 195 then 'insert'when 196 then 'delete'when 197 then 'update'when 224 t... 阅读全文
posted @ 2014-06-17 17:06 呜呼哀哉嘎嘣脆 阅读(59) 评论(0) 推荐(0) 编辑