THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | Join | Help
in Search

Adam Machanic

Adam Machanic, Boston-based independent database consultant, writer, and speaker, shares his experiences with programming, performance tuning, and optimizing SQL Server 2000, 2005, and 2008, in conjunction with related technologies such as .NET.

Demos: Connections, Fall 2009, Las Vegas

Thanks to everyone who attended my sessions this week at SQL Server Magazine Connections in Las Vegas. Attached to this post you will find the demos for the following sessions:

SDV301: Best Practices for Exception Handling and Defensive Programming in SQL Server 2005 and 2008

As developers, we sometimes become lax about dealing with error and exception conditions by the time our code gets down to the data level. Exceptions can feel like something that only application code needs to worry about, until you realize that in SQL Server they can have a tremendous effect on your transactions and your data integrity. Learning to properly handle them is, therefore, of paramount importance to those of us who write data-centric applications. SQL Server 2005 greatly improved exception handling options by adding support for the structured TRY/CATCH syntax, but there is a lot more to the story than just that feature. In this session, we'll delve into the ins and outs of exceptions in both SQL Server 2005 and SQL Server 2008, starting with the database engine itself: types of exceptions, when and why they're thrown, and how the server treats them. Next, learn how to configure and throw your own custom exceptions, as well as how to leverage the SQL Server exceptions infrastructure with a variety of exception handling and defensive programming techniques both with and without the TRY/CATCH syntax. Most importantly, we review the effect of exceptions on transactions, and how to take programmatic control over the outcome of your transactions in the face of an exception.

 

SDV303: T-SQL Power! Learning to Harness the Under-Used OVER Clause

First introduced in SQL Server 2005, the OVER clause is an ANSI SQL enhancement that gives you tremendous control when dealing with aggregations. By using the OVER clause, query writers can simultaneously aggregate columns based on multiple groups. The feature also enables the query engine to provide windowing mechanisms for ranking and row numbering. Leveraging these powerful language enhancements allows you to solve a surprisingly large number of difficult query problems—including custom paging schemes, data de-duplication, "top-N" problems, and complex statistical calculations. Even better, this feature can be creatively applied to help with performance optimization of certain tough queries. In this session, you will learn all of these techniques and see why, after applying the OVER clause in dozens of projects since the release of SQL Server 2005, I consider it to be one of the most powerful T-SQL features available.

 

SDV210: What Happened? Auditing, Tracking, and Change Monitoring Technologies in SQL Server 2008

Regulatory bodies...end-users...your boss. They all want answers. Many questions are easy enough to deal with: "Did someone drop my view?" Others are a bit trickier: "What was the previous value of this row?" And some are seemingly impossible: "Who selected the data from this table over the past week?" For many DBAs, the answer to some or all of these questions is often "Umm..." But don't blame yourself; getting this information in SQL Server has never been especially easy—until now. SQL Server 2008 ships with several new technologies designed to help you track and report on exactly what happened, who did it, and when. In this session, you will learn about SQL Server 2008's Change Tracking, Change Data Capture, and SQL Server Audit features, each of which provides a distinct set of capabilities and has specific strengths and weaknesses. Looking at each of these technologies in turn, you will see how they work and where you might want to leverage them in your SQL Server infrastructure. If you're used to saying "Umm..." get ready to say "I'll be right back with the answer."

 

Enjoy!

 

 

 

Published Thursday, November 12, 2009 6:15 PM by Adam Machanic

Attachment(s): machanic_connections09_demos.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Twitter Trackbacks for Adam Machanic : Demos: Connections, Fall 2009, Las Vegas [sqlblog.com] on Topsy.com said:

November 12, 2009 5:28 PM
 

uberVU - social comments said:

This post was mentioned on Twitter by AdamMachanic: Just posted demos for all of my sessions at #sqlconn: http://bit.ly/1wB1sd

November 12, 2009 6:12 PM
 

Caleb said:

Hey, I enjoyed the sessions at Connections.  Thanks for posting the examples.

November 17, 2009 2:54 PM
 

D.Oc said:

Thank you!

November 19, 2009 3:24 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

About Adam Machanic

Adam Machanic is a Boston-based independent database consultant, writer, and speaker. He has been involved in dozens of SQL Server implementations for both high-availability OLTP and large-scale data warehouse applications, and has optimized data access layer performance for several data-intensive applications. Adam has written for numerous web sites and magazines, including SQLblog, Simple Talk, Search SQL Server, SQL Server Professional, CoDe, and VSJ. He has also contributed to several books on SQL Server, including "Expert SQL Server 2005 Development" (Apress, 2007) and "Inside SQL Server 2005: Query Tuning and Optimization" (Microsoft Press, 2007). Adam regularly speaks at user groups, community events, and conferences on a variety of SQL Server and .NET-related topics. He is a Microsoft Most Valuable Professional (MVP) for SQL Server, a Microsoft Certified IT Professional (MCITP), and a member of the INETA North American Speakers Bureau.

This Blog

Syndication

News

Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement