Performance

Performance Tuning with SQL Server Dynamic Management Views

Sergio Govoni

Dal portale Red-Gate è possibile scaricare gratuitamente, in formato PDF, l’eBook Performance Tuning with SQL Server Dynamic Management Views scritto da Louis Davidson (@drsql) e Tim Ford (@sqlagentman).

Performance Tuning With SQL Server Dynamic Management Views 244x300

Le DMV (Dynamic Management Views and Functions) sono oggetti che pubblicano informazioni sullo stato di salute dell’istanza SQL Server. Permettono di monitorare il cuore del sistema, diagnosticare problemi e misurare le performance, rappresentano uno strumento utilissimo sia per i DBA che per gli sviluppatori di soluzioni database. Il libro spiega come accedere alle informazioni esposte dalle DMV più frequentemente utilizzate per fare troubleshooting sull’esecuzione delle query, sull’utilizzo degli indici, sulle operazioni di I/O, sulle attività eseguite da una determinata sessione e da una determinata transazione.

Building Your T-SQL Tool Kit: Window Function Fundamentals

Sergio Govoni

Sul canale SQLPASS TV è stata pubblicata la sessione Building Your T-SQL Tool Kit: Window Function Fundamentals tenuta da Christina E. Leo (@christinaleo) durante lo scorso PASS Summit 2013.

Abstract

Have you pulled a script to identify duplicates from a blog post but couldn’t quite get it to work because you weren’t sure what that ROW_NUMBER() function was doing? Maybe you heard talk about creating running totals without using subqueries, but you got frustrated when the groups weren’t totaling correctly. Or maybe, you’ve never even heard of window functions. All are good reasons to attend this all-demo session, which demystifies this versatile T-SQL tool. First, we’ll break apart the OVER clause, the key to understanding how window functions work. Then we’ll expand on each group of functions that can use the OVER clause: ranking, aggregate, and analytic functions. Finally, we’ll look at real scenarios where this tool works and talk about performance considerations. When you leave, you’ll have the fundamentals you need to fully develop your mastery of window functions.

How to Use DMVs to Diagnose Performance Issues

Sergio Govoni

Sul canale PASStv è stata pubblicata la sessione How to Use DMVs to Diagnose Performance Issues tenuta da Glenn Berry durante lo scorso PASS Summit.

Le DMVs (DMV + DMF) forniscono informazioni sullo stato di salute dell’istanza SQL Server. Permettono di diagnosticare problemi di performance e rappresentano uno strumento utilissimo sia per i DBA che per gli sviluppatori; aumentano ad ogni versione di SQL Server e dopo averle toccate con mano non potrete più farne a meno vi consiglio quindi di non perdervi questa sessione!

SQL Server Execution Plans

Sergio Govoni

Sul canale SQLPASS TV, continua la pubblicazione delle sessioni erogate al PASS Summit 2011. Questa settimana è stata pubblicata la sessione SQL Server Execution Plans (From Compilation to Caching to Reuse) tenuta da Maciej Pilecki (SQL Server MVP, MCM).

Abstract

Execution plan reuse is one of the most important aspects of building well-performing and scalable SQL Server solutions. But it’s also the one that is often overlooked during the design phase and becomes very difficult to troubleshoot later. In this session we will discuss in details the following aspects of SQL Server execution plans: compilation, re-compilation, parameterization, caching, reuse and aging. You will leave this session with full understanding of how to improve your server’s performance by increasing execution plan reuse (and how to avoid reuse in case this is necessary).