随笔分类 - SQL数据库
SQL的数据库
摘要:死锁: select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' spid 锁表进程
阅读全文
摘要:授权:grant execute on xp_dirtree to public 回收:revoke execute on xp_dirtree from public
阅读全文
摘要:SELECT top 10 t.NAME AS TableName, p.rows AS RowCounts,--数据量 SUM ( a.total_pages ) * 8 AS TotalSpaceKB,--空间总内存KB CAST ( ROUND((( SUM ( a.total_pages )
阅读全文
浙公网安备 33010602011771号