DBCC (Transact-SQL) Overview
SQL Server 2012 Posted from TechNet The Transact-SQL programming language provides DBCC statements that act as Database Console Commands for SQL Server. Database…
Read MoreSQL Server 2012 Posted from TechNet The Transact-SQL programming language provides DBCC statements that act as Database Console Commands for SQL Server. Database…
Read MoreThis post will demonstrate how to run the undocumented DBCC PAGE command to view the properties of a page. First we execute the…
Read More
1 2 3 4 5 6 7 8 |
SELECT OBJECT_NAME(objectid) ,BlockTime = total_elapsed_time - total_worker_time ,execution_count ,total_logical_reads FROM sys.dm_exec_query_stats qs CROSS apply sys.dm_exec_sql_text(qs.sql_handle) ORDER BY total_elapsed_time - total_worker_time DESC |
Views – 1855
Read More
1 2 3 4 |
SELECT DISTINCT objname = object_name(p.object_id) FROM sys.partitions p JOIN sys.dm_tran_locks t1 ON p.hobt_id = t1.resource_associated_entity_id |
Views – 1630
Read MorePosted on June 17, 2009 by Derek Dieter Finding the lead blocker in a chain of blocks is a difficult challenge when using…
Read More
1 2 3 4 5 6 7 8 9 |
SELECT sqltext.TEXT, req.session_id AS 'SPID', req.status AS 'Status', req.command AS 'Command', req.cpu_time AS 'CPU Time', req.total_elapsed_time/1000 AS 'Total Elapsed Time in Seconds' FROM sys.dm_exec_requests req CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS sqltext ORDER BY [CPU Time] DESC |
Views – 2172
Read MoreIf the disk drive that receives the log-shipping transaction files (*.trn) fills up, it will cause the log shipping chain to break for…
Read MoreHere is an awesome extentions of the sp_who and sp_who2 (undocumented) sprocs DBA’s use to see slow running queries etc. Download link for…
Read More
1 2 |
SELECT * FROM sys.dm_exec_connections |
Views – 1934
Read MoreUsing SQL Profiler to trace a Stored Procedure call Views – 1767
Read More