SlideShare a Scribd company logo
Introduction to SQL Server ProfilerJack D. Corbett
About the Speaker	SQL Server Developer\DBA ConsultantWorked with SQL Server since 1999Regular SQLSaturday speakerOne of the organizers of PASS SQLRally 2011
What is Profiler?	Client application on top of SQL TraceSQL Trace is:Method of monitoring events in SQL ServerBased on a set a of stored procedures for defining events to monitor, columns to return, and filters.
Why use SQL Server Profiler?It’s FREE with SQL Server!It’s easy to use.To analyze and determine application behaviorsTo troubleshoot applicationsTo performance tuneTo audit your SQL Server
How Does Profiler Work?Event Providers produce eventsTrace Controller handles traces and marks events to be tracedMarked events are filtered and queued in buffers.There are 2 trace providersRowset Provider – used by ProfilerFile Provider
Trace Architecture (from BOL)
Security ConsiderationsAlter Trace permissions required (new to SQL Server 2005)Hides passwords in Create/Alter LoginEncrypted code (SP’s, UDF’s, etc…) hidden.
Accessing ProfilerStart –> Programs –> Microsoft SQL Server 2008 –> Performance ToolsIn SSMS under the Tools menu.
DemoOpening Profiler Connecting to a serverSelecting a TemplateSaving a trace while executingAdd/remove eventsAdd/remove columnsAdd/remove filters
DemoExecuting a trace Saving a custom templateSaving a completed traceRe-opening a saved traceSaving a trace definition
Integrating with Perfmon DataNeed a PerfMon logNeed a saved trace with start and end time columns
Demo Integrating trace with PerfMon Data
Performance ConsiderationsUsing Profiler is more impactful than a server-side traceMore events and columns = more impactMultiple small traces have less impact than one large traceServer-side tracing to a file has minimal impact on performance – seehttp://tinyurl.com/LinchiShea
ResourcesMicrosoft SQL Server 2005 UnleashedInside Microsoft® SQL Server(TM) 2005: Query Tuning and Optimization SQL Server 2005 Books On Linehttp://tinyurl.com/SimpleTalkDeadlockshttp://tinyurl.com/DbJProfilerPart1http://tinyurl.com/DbJProfilerPart2http://tinyurl.com/PASSProfiler
Contact InformationBlog: www.wisemanorwiseguy.comTwitter: http://twitter.com/unclebigunsLinkedIn: http://www.linkedin.com/in/jackcorbettEmail: corbett.jack@gmail.com
Thanks for Coming!Thanks for coming and I hope you learned something useful.Let me know about any comments or suggestions you may have.

More Related Content

PPT
R12 d49656 gc10-apps dba 21
PPTX
Waits alerts and switch windows
PPT
Less18 Patching oracle dba 11g
PPT
App a automating tasks
PPT
Mon 106 1200 crowley
PPT
Krazykoder struts2 intro
PPTX
Managing SQL Server Made Easy - Features and Concepts
PDF
Decision services for soa platforms
R12 d49656 gc10-apps dba 21
Waits alerts and switch windows
Less18 Patching oracle dba 11g
App a automating tasks
Mon 106 1200 crowley
Krazykoder struts2 intro
Managing SQL Server Made Easy - Features and Concepts
Decision services for soa platforms

What's hot (17)

PPTX
Middleware monitoring with Applications Manager
PDF
Q2.12: Benchmarking Techniques
PDF
Business rules management system
PPT
Team Foundation Server Version Control
PPTX
Top 12 Advantages of Laravel Framework
PPTX
VCS_QAPerformanceSlides
PDF
Fundamentals Performance Testing
PPTX
Application Performance Tuning Techniques
PPT
Help! Agile PLM won’t start after a database import!
PPT
ALP. Short facts
PPTX
Hybrid automation framework
PDF
Jmeter Walkthrough
PPT
Addmi 18-appliance baseline
PPT
PCD - Process control daemon
PPTX
Performance testing with Apache JMeter
PDF
End-to-End Automation: Providing Stakeholders Feedback on Quality
PPTX
Docker Sydney: 5 Patterns for App Transformation with Containers
Middleware monitoring with Applications Manager
Q2.12: Benchmarking Techniques
Business rules management system
Team Foundation Server Version Control
Top 12 Advantages of Laravel Framework
VCS_QAPerformanceSlides
Fundamentals Performance Testing
Application Performance Tuning Techniques
Help! Agile PLM won’t start after a database import!
ALP. Short facts
Hybrid automation framework
Jmeter Walkthrough
Addmi 18-appliance baseline
PCD - Process control daemon
Performance testing with Apache JMeter
End-to-End Automation: Providing Stakeholders Feedback on Quality
Docker Sydney: 5 Patterns for App Transformation with Containers
Ad

Similar to Profiling its okay in sql server (20)

PPTX
Sql server-performance-hafi
PPTX
Sql query analyzer & maintenance
PPT
Tracing Sql Server 2005
PPTX
SQL debugging
PPT
SQL Server Profiler & Performance Monitor - SarabPreet Singh
PPTX
Sql server lesson12
PPSX
Sql server lesson12
PDF
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
PPT
Sql server performance tuning
PDF
Why & how to optimize sql server for performance from design to query
PPTX
SQL Explore 2012: P&T Part 1
PPTX
Achieving Gold Medal Performance From SQL Server
PPT
Sql Server Performance Tuning
PDF
Monitor and tune for performance
PDF
SQL Server 2014 Monitoring and Profiling
PPTX
Perfmon And Profiler 101
PDF
Practical SQL query monitoring and optimization
PPTX
End-to-end Troubleshooting Checklist for Microsoft SQL Server
PPTX
Perfmon And Profiler 101
DOCX
Sql server 2008 r2 performance and scale
Sql server-performance-hafi
Sql query analyzer & maintenance
Tracing Sql Server 2005
SQL debugging
SQL Server Profiler & Performance Monitor - SarabPreet Singh
Sql server lesson12
Sql server lesson12
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
Sql server performance tuning
Why & how to optimize sql server for performance from design to query
SQL Explore 2012: P&T Part 1
Achieving Gold Medal Performance From SQL Server
Sql Server Performance Tuning
Monitor and tune for performance
SQL Server 2014 Monitoring and Profiling
Perfmon And Profiler 101
Practical SQL query monitoring and optimization
End-to-end Troubleshooting Checklist for Microsoft SQL Server
Perfmon And Profiler 101
Sql server 2008 r2 performance and scale
Ad

Recently uploaded (20)

PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPT
Teaching material agriculture food technology
PDF
Electronic commerce courselecture one. Pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Encapsulation theory and applications.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MIND Revenue Release Quarter 2 2025 Press Release
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Unlocking AI with Model Context Protocol (MCP)
Mobile App Security Testing_ A Comprehensive Guide.pdf
Network Security Unit 5.pdf for BCA BBA.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
“AI and Expert System Decision Support & Business Intelligence Systems”
Teaching material agriculture food technology
Electronic commerce courselecture one. Pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Reach Out and Touch Someone: Haptics and Empathic Computing
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Encapsulation theory and applications.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...

Profiling its okay in sql server

  • 1. Introduction to SQL Server ProfilerJack D. Corbett
  • 2. About the Speaker SQL Server Developer\DBA ConsultantWorked with SQL Server since 1999Regular SQLSaturday speakerOne of the organizers of PASS SQLRally 2011
  • 3. What is Profiler? Client application on top of SQL TraceSQL Trace is:Method of monitoring events in SQL ServerBased on a set a of stored procedures for defining events to monitor, columns to return, and filters.
  • 4. Why use SQL Server Profiler?It’s FREE with SQL Server!It’s easy to use.To analyze and determine application behaviorsTo troubleshoot applicationsTo performance tuneTo audit your SQL Server
  • 5. How Does Profiler Work?Event Providers produce eventsTrace Controller handles traces and marks events to be tracedMarked events are filtered and queued in buffers.There are 2 trace providersRowset Provider – used by ProfilerFile Provider
  • 7. Security ConsiderationsAlter Trace permissions required (new to SQL Server 2005)Hides passwords in Create/Alter LoginEncrypted code (SP’s, UDF’s, etc…) hidden.
  • 8. Accessing ProfilerStart –> Programs –> Microsoft SQL Server 2008 –> Performance ToolsIn SSMS under the Tools menu.
  • 9. DemoOpening Profiler Connecting to a serverSelecting a TemplateSaving a trace while executingAdd/remove eventsAdd/remove columnsAdd/remove filters
  • 10. DemoExecuting a trace Saving a custom templateSaving a completed traceRe-opening a saved traceSaving a trace definition
  • 11. Integrating with Perfmon DataNeed a PerfMon logNeed a saved trace with start and end time columns
  • 12. Demo Integrating trace with PerfMon Data
  • 13. Performance ConsiderationsUsing Profiler is more impactful than a server-side traceMore events and columns = more impactMultiple small traces have less impact than one large traceServer-side tracing to a file has minimal impact on performance – seehttp://tinyurl.com/LinchiShea
  • 14. ResourcesMicrosoft SQL Server 2005 UnleashedInside Microsoft® SQL Server(TM) 2005: Query Tuning and Optimization SQL Server 2005 Books On Linehttp://tinyurl.com/SimpleTalkDeadlockshttp://tinyurl.com/DbJProfilerPart1http://tinyurl.com/DbJProfilerPart2http://tinyurl.com/PASSProfiler
  • 15. Contact InformationBlog: www.wisemanorwiseguy.comTwitter: http://twitter.com/unclebigunsLinkedIn: http://www.linkedin.com/in/jackcorbettEmail: corbett.jack@gmail.com
  • 16. Thanks for Coming!Thanks for coming and I hope you learned something useful.Let me know about any comments or suggestions you may have.