T-SQL Enhancements in SQL Server 2005
Sql server 2005 includes new Transact-SQL (T-SQL) functionality. The enhancements span the range from an alternative mechanism for transaction isolation to declarative support for hierarchical queries. And statement-level recompilation even improves existing T-SQL applications that were written before 2005.
Improvements to Transact-SQL
Microsoft has continually improved the Transact SQL language and the infrastructure of SQL Server itself. In brief, the improvements include the following:
SNAPSHOT isolationAdditional isolation level that does not use write locks
Statement-level recompileMore efficient recompilation of stored procedures
Event notificationsIntegration of Data Definition Language (DDL) and DML operations with Service Broker
Large data typesNew data types that deprecate TEXT and IMAGE
DDL triggersTriggers that fire on DDL operations
Common Table ExpressionsDeclarative syntax that makes a reusable expression part of a query
Hierarchical queriesDeclarative syntax for tree-based queries
PIVOTDeclarative syntax aggregations across columns and converting columns to rows
APPLYNew JOIN syntax made for use with user-defined functions and XML
TOPRow count based on an expression
Transaction abortTRY/CATCH syntax for handling errors