WinInfo Daily News   |   Windows IT Pro
in
Microsoft Technet

IT Pro Tips


SQL Server 2008: X-Event Infrastructure

By Ronald Barrett

A new feature of SQL Server 2008 is the SQL Extended Events (a.k.a. the X-Event Infrastructure), while event reporting is not a new feature in SQL Server products. X-Event is an exciting new event infrastructure that allows for detailed traces of what is happening within the SQL Server. X-Event has support for sending events to the Windows, and integrating with system level events.

The Microsoft SQL Server TechNet Virtual Lab: X-Event Infrastructure takes you through four labs focusing on the following SQL operations areas:

1. Queryable Schema

2. Procedure & Kernel Analysis

3. Procedure Usage

4. Long Running Queries

The first demonstration shows how X-Event groups metadata into channels and keywords, grouping the results into packages and the objects in the packages.

The next demo takes you through the process of creating a log file that exports results to a .csv file to show how the SQL Server X-Event data is merged into the ETW (Event Tracing for Windows). The demo shows. The results of stored procedures for the SQL Server and Disk IO for the session.

TIP: Step J. calls for launching the xeetw.csv file; this link is not immediately seen when running the demo.  To locate the file, go to the first pane ( the command line interface), and scroll to the right.  You will see the xeetw.csv file.  Double clicking will launch the Excel file. 

The third demo shows the ability to get aggregate results from a query. It also shows how to cross-examine the database for results about bottlenecks and failures, rather than reviewing trace logs. The demo shows how the event sessions are created in the system tables of the database.

Finally we take a look at how we can create and alter statements to get precise results for the events that are considered. We also learn how to filter these results and extend data already collected, along with other available actions.

This lab was a challenge, but definitely a worthwhile one. It definitely helps to keep your skills sharp. I have worked some with T-SQL in the past, since most of my job has been database management; I have not done tremendous amounts of querying. However I have done tons of analyses of events and traces in order to track a problem and resolve it. The X-Event Infrastructure certainly is a great tool for querying and resolving issues in SQL Server 2008. This virtual lab certainly whets the appetite and leaves you wanting to dive deeper into the subject.

Comments

No Comments
Acceptable Use Policy

SPONSORED LINKS FEATURED LINKS

Calculate your savings nowSee how SAN is 57% cheaper than DAS over three years Free CDs Offer Fundamental Content for IT ProsAre you up to speed on the latest technologies and solutions? Don't miss out on your chance to get up to speed quickly on fundamental, in-depth information on some of the hottest topics in our library of content. Let Your Users Reset Their Own Passwords: Free Download Try a 30 day free trial of Desktop Authority Password Self-Service – it provides an easy-to-use, robust system for allowing users to reset their own forgotten passwords or locked accounts. Exchange Server 2010: Deploying Unified Communications - Virtual conferenceDecember 1, 2009 - Free Registration. Build your Unified Communications future on a strong Exchange Server 2010 foundation. Get Windows IT Pro & Mark Minasi’s Favorite Power Tools GuideOrder Windows IT Pro now and get "More of Mark Minasi's Favorite Power Tools"--a in-depth guide to the most useful Windows commands --FREE with your paid order! Subscribe today, and save 58% off the cover price! Migration, Virtualization, Availability, and Desktop ManagementRealize the importance of a workload optimization strategy...it can affect your bottom line! Deep Dive into VMware vSphere, eLearning SeriesJoin John Savill to explore the major functionality capabilities of the vSphere virtualization platform, including identification of the changes from ESX 3.5.
Windows IT Pro |  Subscribe |  Register |  FAQ for Windows |  Media Kit |  WinInfo News |  Europe Edition |  About Us |  Contact Us/Customer Service |  Affiliates/Licensing
SQL Server Magazine |  Office & SharePoint Pro |  WinDevPro |  asp.netPRO |  IT Library |  Technology Resource Directory |  ITTV |  IT Job Hound

© 2009 Penton Media, Inc.     Terms of Use | Privacy Statement | Reprints and Licensing