If 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