Skip to content

Instantly share code, notes, and snippets.

@kiquenet
kiquenet / SQL
Created February 18, 2016 10:32 — forked from huguogang/SQL
SQL Server Performance DMV Sample Queries
-----------------------------------------------------------------------
-- Collection of queries that helps in performance tuning
--grant permission to user
GRANT VIEW SERVER STATE TO [user_name]
------------ based on http://msdn.microsoft.com/en-us/magazine/cc135978.aspx
---------- Uncover hidden data to optimize application performance -----------------------
-- * Number of missing indexes
@kiquenet
kiquenet / gist:4964f650fe70c3180ea6
Created November 19, 2015 08:39
SSRS analytics Queries
Use ReportServer
go
/* Performance Tips
1. High TimeDataRetriveal
* Removed unused datasets
* Analyze the dataset query in SQL Profiler
* Combine Datasets where possible
2. High TimeProcessing
* Use less report parts (tables, charts...)
* Do Grouping and Sorting on the SQL Side