摘要: sql表内存占用情况 IF OBJECT_ID('tempdb..#TablesSizes') IS NOT NULL DROP TABLE #TablesSizes CREATE TABLE #TablesSizes ( TableName sysname , Rows BIGINT , rese 阅读全文
posted @ 2019-07-01 15:50 人生为卒 阅读(329) 评论(0) 推荐(0) 编辑
摘要: SELECT request_session_id spid, OBJECT_NAME( resource_associated_entity_id ) tableName FROM sys.dm_tran_locks WHERE resource_type = 'OBJECT' ORDER BY request_session_id ASC 阅读全文
posted @ 2019-07-01 10:37 人生为卒 阅读(120) 评论(0) 推荐(0) 编辑