Overview
This thorough, hands-on reference for database developers and administrators delivers expert guidance on sophisticated uses of Transact-SQL (T-SQL)-one of the most familiar and powerful programming languages for SQL Server. Written by a T-SQL guru, this guide focuses on language features and how they are interpreted and processed by the SQL Server execution engine. You'll get in-depth coverage of the sophisticated uses of T-SQL, including triggers, user-defined functions, exception handling, and more. The book explains and compares solutions to database-development problems in both SQL Server 2000 and SQL Server 2005, discussing the new T-SQL programming features added to SQL Server 2005 in detail. Includes extensive code samples, table examples, and logic puzzles to help database developers and administrators understand the intricacies and help promote mastery of T-SQL.Synopsis
This thorough, hands-on reference for database developers and administrators delivers expert guidance on sophisticated uses of Transact-SQL (T-SQL)-one of the most familiar and powerful programming languages for SQL Server. Written by a T-SQL guru, this guide focuses on language features and how they are interpreted and processed by the SQL Server execution engine. You'll get in-depth coverage of the sophisticated uses of T-SQL, including triggers, user-defined functions, exception handling, and more. The book explains and compares solutions to database-development problems in both SQL Server 2000 and SQL Server 2005, discussing the new T-SQL programming features added to SQL Server 2005 in detail. Includes extensive code samples, table examples, and logic puzzles to help database developers and administrators understand the intricacies and help promote mastery of T-SQL.
Editorials
From Barnes & Noble
The Barnes & Noble ReviewIf you’re an experienced T-SQL programmer, or a database pro who writes or reviews T-SQL code, Inside Microsoft SQL Server 2005: T-SQL Programming will take your T-SQL skills to a whole new level.
We’ve praised this book’s companion volume, Inside Microsoft SQL Server 2005: T-SQL Querying, elsewhere. Here, Microsoft SQL Server MVP Itzik Ben-Gan turns from set-based querying to programmatic T-SQL constructs, while also offering extensive coverage of both XML and .NET integration.
Ben-Gan opens by discussing several crucial datatype-related programming problems. You’ll learn how to avoid trouble with DATETIME arising from misconceptions about its storage format, or differences in its representation conventions. You’ll also gain important pointers on character manipulation, from pattern matching and parsing to case sensitivity.
Next, Ben-Gan turns to another common task: materializing data temporarily. He compares temporary tables to other alternatives, shows how to use the right temporary object for each task, and helps programmers avoid abusing temporary tables and variables. There’s a full chapter on cursors: when they still make sense and why they so often don’t.
After thorough discussions of dynamic execution and views, Ben-Gan and contributing author Dejan Sarka turn to XML and .NET integration via user-defined types and functions, stored procedures, and triggers (both CLR and DDL). You’ll find extensive code samples, available in both C# and Visual Basic .NET.
The book’s full chapter on transactions introduces SQL Server 2005’s new snapshot-based isolation levels and shows how they minimize blocking. Finally, another guest author -- Roger Wolter -- is singularly well qualified to write this book’s Service Broker coverage. He’s the Microsoft program manager who helped create it. Bill Camarda, from the June 2006 Read Only