MS SQL Server
  Home arrow MS SQL Server arrow Page 2 - SQL Server 2005: What's New?
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MS SQL SERVER

SQL Server 2005: What's New?
By: David Fells
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 33
    2004-12-07

    Table of Contents:
  • SQL Server 2005: What's New?
  • PIVOT and UNPIVIT Operators
  • XML Data Type
  • SQL Management Objects (SMO)
  • CLR Integration

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    SQL Server 2005: What's New? - PIVOT and UNPIVIT Operators


    (Page 2 of 5 )

    PIVOT and UNPIVOT are relational operators that, like CTEs, are geared toward BI applications. To put it briefly, PIVOT provides the basic operation required for crosstabs, effectively converting columns into rows. UNPIVOT does the reverse, converting rows into columns. This allows you to perform quick crosstabs without having to use OLAP. This is a great feature for report building!

    APPLY, CROSS APPLY and OUTER APPLY Operators

    APPLY is a relational operator that allows you to use a table-valued function once for each row of outer table expressions. You use APPLY in the FROM clause much like a JOIN, and it comes in two forms - CROSS APPLY and OUTER APPLY. CROSS APPLY invokes a table-valued function for each row in an outer table expression. OUTER APPLY is similar but it will return rows from the outer table where the table-valued function returned an empty set. This is a reasonably useful feature, but not life changing for most SQL programmers.

    Exception Handling in Transactions

    In an effort to render the GOTO statements of previous TSQL implementations useless, SQL Server 2005 implements TRY/CATCH blocks. These blocks work as expected, just like blocks of the same type in C# or VB.NET. This is a good feature for multipart transactions and will definitely demonstrate increased value for developers.

    The new features in TSQL offer a lot of benefit for SQL programmers and definitely warrant poking around with the server. Next up is the expanded XML support provided by SQL Server 2005. There is now an XML data type with methods built to operate on that data as well as support for XQuery and DML Extensions.

    More MS SQL Server Articles
    More By David Fells


       · That's simple, with XML support included you can extend you simple relational...
       · In one sentence you yell that not every solution is right for every problem. Next...
     

    MS SQL SERVER ARTICLES

    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services
    - Building a Multi-table Report with SQL 2005 ...
    - A Secure Way of Building Connection Strings
    - Transferring a Database Using the SSIS Desig...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT