Wednesday, July 9, 2014

How to examine cached execution plan

Use sys.dm_exec_cached_plans

SELECT top 10 UseCounts, Cacheobjtype, Objtype, TEXT, query_plan
FROM sys.dm_exec_cached_plans
CROSS APPLY sys.dm_exec_sql_text(plan_handle)
CROSS APPLY sys.dm_exec_query_plan(plan_handle)

Wednesday, April 16, 2014

T-SQL tools

Excellent SQL search tool, that allows to search for all objects, sp, views, tables and so on

SQL Search
http://www.red-gate.com/products/sql-development/sql-search/ 

SSMS Tools.
SQL History that store history of all run scripts.
http://www.ssmstoolspack.com/Download 

Tuesday, March 25, 2014

How to view Windows Handles and GDI Objects used by process?

Open Task Manager
Choose tab Processes
Select column Handles and GDI Objects from menu View




Monday, February 24, 2014

How to which security groups I belong?

Run the following command

gpresult /v

Look for section
The user is a part of the following security groups

Also

whoami /groups