En esta sesión veremos algunas consultas que nos permitirán conocer secretos ocultos de Sql Server, que podrían salvarnos en más de una vez en problemas de rendimiento.
bases-cye-2024(2) una sola descarga en base de feria de
Preguntando a SQL server con DMV
1. Preguntando a SQL server con DMV
13 de Mayo 2015 (12 pm GMT -5)
Ahias Portillo
Resumen:
En esta sesión veremos algunas consultas que nos
permitirán conocer secretos ocultos de Sql Server,
que podrían salvarnos en más de una vez en
problemas de rendimiento.
Está por comenzar:
Próximos Eventos
BIML para automatizar patrones
de ETL
20 de Mayo
Miguel Egea
Moderador: Kenneth Ureña
Always ON de 0 a 100, lecciones
aprendidas de la vida real para
un DRP
27 de Mayo
Jesus Gil
Descubriendo los datos
espaciales con SQL Server
6 de Junio
John Bulla
2. Manténgase conectado a nosotros!
Visítenos en http://globalspanish.sqlpass.org
/SpanishPASSVC
lnkd.in/dtYBzev
/user/SpanishPASSVC
/SpanishPASSVC
4. 4
Oportunidades de Voluntariado
PASS no pudiera existir sin personas apasionadas y
dedicadas de todas partes del mundo que dan de su
tiempo como voluntarios.
Se un voluntario ahora!!
Para identificar oportunidades locales visita
volunteer.sqlpass.org
Recuerda actualizar tu perfil en las secciones de
“MyVolunteering” y MyPASS para mas detalles.
6. Preguntando a SQL Server con DMV
13 de Mayo de 2015
Ahias Portillo
MVP SQL Server
DPA en SolidQ
PASS | Líder de capitulo
Moderador: Kenneth Ureña
7. Sobre Mi
1. Estudiante de Maestría de Base de datos
2. Sql Server MVP
3. Arquitecto de Plataforma de Datos en SolidQ
• Líder de Equipo de BI, Desarrollador BI.
4. Especialidad: SSIS y SSAS
5. Speaker de Sql Saturday en Centro América
6. Líder de capitulo PASS en El Salvador
7. Organizador de Sql Saturday El Salvador
7
8. Agenda
• ¿Que son las DMV?
• Tipos de DMV’s
• DMV’s para análisis de Índices
• Fragmentación
• Índices no encontrados
• Índices No utilizados, Ineficientes, Utilizados
• Información de Ejecuciones de Querys
8
9. ¿Que son las DMV?
• Disponibles desde Sql Server 2005.
• Algunas DMV’s son DMF’s, (Funciones de tipo tabla), que utilizan
parámetros.
• Todas ellas están dentro de la categoría de DMO’s (Dynamic
Management Objects)
10. DMV’s
Grupos de DMV Grupos de DMV Grupos de DMV
Change data capture Full-text search Service Broker
Common Language
Runtime
Index SQL Server Operating
System
Database Input/Output (I/O) Transaction
Database mirroring Query notification Security
Execution Replication AlwaysOn Availabulity Group
Extended events Resource Governor Database Related
Filestream and FileTable Memory-Optimized Change Tracking
11. DMV’s para análisis de Índices
• Análisis de fragmentación
• sys.dm_db_index_physical_stats
• Índices no encontrados
• sys.dm_db_missing_index_groups
• sys.dm_db_missing_index_group_stats
• sys.dm_db_missing_index_details
11
12. DMV’s para análisis de Índices
• Índices No utilizados, Ineficientes, Utilizados
• sys.dm_db_index_usage_stats
12
13. Información de Ejecuciones de Querys
• sys.dm_exec_query_stats
• sys.dm_exec_cached_plan
• sys.dm_exec_plan_attributes
• sys.dm_exec_sql_text
13
15. BIML para automatizar patrones de ETL
20 de Mayo (12 pm GMT -5)
Miguel Egea
Resúmen:
Los procesos de extracción transformación y carga de
datos suelen ser el impacto en tiempo más grande de
todos los procesos construcción de soluciones de
inteligencia de negocios. Los estudios lo situan entre el
60% y el 80% del tiempo total de construcción de una
solución. Durante la sesión veremos como podemos
aprovecharnos de nuestros propios metadatos y el
lenguaje BIML de Varigence de forma gratuita para
automatizar este tipo de procesos.
Próximo Evento
Notas del editor
Change data capture Change data capture relates to how SQL Server captures change activity
(inserts, updates, and deletes) across one or more tables, providing centralized
processing. It can be thought of as a combination of trigger and
auditing processing in a central area. These DMVs contain information
relating to various aspects of change data capture, including transactions,
logging, and errors. This group of DMVs occurs in SQL Server
2008 and higher.
Common Language
Runtime
The Common Language Runtime allows code that runs on the database to
be written in one of the .NET languages, offering a richer environment and
language and often providing a magnitude increase in performance. These
DMVs contain information relating to various aspects of the .NET Common
Language Runtime, including application domains (these are wider in
scope than a thread and smaller than a session), loaded assemblies, properties,
and running tasks.
Database These DMVs contain information relating to various aspects of databases,
including space usage, partition statistics, and session and task space
information.
Database mirroring The aim of database mirroring is to increase database availability. Transaction
logs are moved quickly between servers, allowing fast failover to the
standby server. These DMVs contain information relating to various
aspects of database mirroring, including connection information and pagerepair
details.
Execution These DMVs contain information relating to various aspects of query execution,
including cached plans, connections, cursors, plan attributes, stored
procedure statistics, memory grants, query optimizer information, query
statistics, active requests and sessions, SQL text, and trigger statistics.
Extended events Extended events allow SQL Server to integrate into Microsoft’s wider
event-handling processes, allowing integration of SQL Server events with
logging and monitoring tools. This group of DMVs occurs in SQL Server
2008 and higher.
Full-text search Full-text search relates to the ability to search character-based data using
linguistic searches. This can be thought of as a higher-level wildcard
search. These DMVs contain information relating to various aspects of fulltext
search, including existing full-text catalogs, index populations currently
occurring, and memory buffers/pools.
Index These DMVs contain information relating to various aspects of indexes,
including missing indexes, index usage (number of seeks, scans, and lookups,
by system or application, and when they last occurred), operational
statistics (I/O, locking, latches, and access method), and physical statistics
(size and fragmentation information).
Input/Output (I/O) These DMVs contain information relating to various aspects of I/O, including
virtual file statistics (by database and file, number of reads/writes,
amount of data read/written, and I/O stall time), backup tape devices, and
any pending I/O requests.
Object These DMVs contain information relating to various aspects of dynamic
management objects; these relate to object dependencies.
Query notification These DMVs contain information relating to various aspects of query notification
subscriptions in the server.
Replication These DMVs contain information relating to various aspects of replication,
including articles (type and status), transactions, and schemas
(table columns).
Resource Governor In the past, running inappropriate ad hoc queries on the database
sometimes caused timeout and blocking problems. SQL Server 2008
implements a resource governor that controls the amount of resources
different groups can have, allowing more controlled access to resources.
These DMVs contain information relating to various aspects of Resource
Governor, including resource pools, governor configuration, and workload
groups. This group of DMVs occurs in SQL Server 2008 and higher.
Service Broker Service Broker is concerned with providing both transactional and disconnected
processing, allowing a wider range of architectural solutions to be
created. These DMVs contain information relating to various aspects of
Service Broker, including activated tasks, forwarded messages, connections,
and queue monitors.
SQL Server Operating
System
These DMVs contain information relating to various aspects of the SQL
Server Operating System (SQLOS), including performance counters, memory
pools, schedulers, system information, tasks, threads, wait statistics,
waiting tasks, and memory objects.
Transaction These DMVs contain information relating to various aspects of transactions,
including snapshot, database, session, and locks.
Security These DMVs contain information relating to various aspects of security,
including audit actions, cryptographic algorithms supported, open
cryptographic sessions, and database encryption state (and keys).