Blog Detail

23 Aug 2010
Tejas Shah
Recently my company owner reported that SQL SERVER is running slow. I searched for it and get following T-SQL query. SQL SERVER provides dynamic views, which contains current information about all details.
SELECT OBJECT_NAME(ObjectID) as ObjectName,
  DB_NAME(database_ID) as dbname,
  Blocking_session_ID as BlockingSessionID,  
FROM sys.dm_exec_requests r
CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS st


It will give us details like about running SQL Objects, with Database name:

About me


Tejas Shah

Microsoft Certified Professional Expert. I have 14+ years of experience in Design and Develop 100+ .Net applications using Asp.Net, C#, Asp.Net Core, VB.Net, SQL Server, MVC, AngularJS, JavaScript, Azure, HTML5 and CSS3.