Home > Articles > Databases > SQL Server

T-SQL Enhancements in SQL Server 2005

  • PrintPrint
  • Share ThisShare This
  • DiscussDiscuss
SQL Server 2005 includes a plethora of new features and tools that can help developers more efficiently and effectively manage data. This article provides a preview of the new features and their use.

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 isolation—Additional isolation level that does not use write locks

  • Statement-level recompile—More efficient recompilation of stored procedures

  • Event notifications—Integration of Data Definition Language (DDL) and DML operations with Service Broker

  • Large data types—New data types that deprecate TEXT and IMAGE

  • DDL triggers—Triggers that fire on DDL operations

  • Common Table Expressions—Declarative syntax that makes a reusable expression part of a query

  • Hierarchical queries—Declarative syntax for tree-based queries

  • PIVOT—Declarative syntax aggregations across columns and converting columns to rows

  • APPLY—New JOIN syntax made for use with user-defined functions and XML

  • TOP—Row count based on an expression

  • Transaction abort—TRY/CATCH syntax for handling errors

  • Share ThisShare This
  • Save To Your Account

Discussions

comments powered by Disqus

Related Resources

There are currently no related podcasts. Please check back later.

Careful with those NULLs
By on October 13, 2010Comments

Many folks (including me) use NULL values in their databases. There's actually a bit of controversy on even having them - but I don't fall on the side of never using the. But you do need to exercise some care...

The true value of conferences
By on October 5, 2010Comments

I recently returned from the "SQLBits" conference in York, England. I met a lot of folks that I've seen before at other conferences, but I also met a fair amount that had not been to a SQL Server conference before.

Finding Big Data
By on September 16, 2010Comments

I get asked from time to time about locating "Big Data" - or large sets of data for an application.

See All Related Blogs