<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d8211560\x26blogName\x3dTech+Tips,+Tricks+%26+Trivia\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://mvark.blogspot.com/search\x26blogLocale\x3den\x26v\x3d2\x26homepageUrl\x3dhttp://mvark.blogspot.com/\x26vt\x3d-5147029996388199615', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Tech Tips, Tricks & Trivia

by 'Anil' Radhakrishna
An architect's notes, experiments, discoveries and annotated bookmarks.

Search from over a hundred HOW TO articles, Tips and Tricks


What's new in SQL Server 2005 for the T-SQL programmer

I have been taking a course on SQL Server 2005 Transact-SQL and having already worked on SQL Server 7 & 2000, I was keen on knowing what new Transact-SQL features SQL Server 2005 offers. With help from other online resources as well, I have summarized the key enhancements for quick reference -
  1. TOP — Row count based on an expression. TOP can also be used with INSERT, UPDATE, and DELETE.
  2. OUTPUT clause with DML Commands - to determine the changes from an INSERT, UPDATE, or DELETE
  3. PIVOT/UNPIVOT - to create crosstab queries
  4. TRY-CATCH - for improved error handling
  5. Ranking Functions [ ROW_NUMBER(), RANK(), DENSE_RANK(), and NTILE() ] - ranking adds an extra value column to the resultset that is based on a ranking algorithm being applied to a column of the result.
  6. DDL Triggers - fire when CREATE, ALTER, or DROP statements are executed, useful for auditing
  7. Common Table Expression (CTE) - to create recursive query expressions
  8. TABLESAMPLE clause - lets you efficiently sample pages from a table.
  9. SNAPSHOT isolation level — Additional isolation level (not a ANSI Transaction Isolation Level) that does not use write locks
  10. Statement-level recompile — More efficient recompilation of stored procedures
  11. Event notifications — Integration of Data Definition Language (DDL) and DML operations with Service Broker
  12. Large data types— The MAX specifier that can be used with VARCHAR, NVARCHAR & VARBINARY allows storage of up to 2^31-1 bytes (2,147,483,647 bytes or 2GB - 1 bytes).These new data types deprecate TEXT, NTEXT & IMAGE data types (known as Large Object data types, or LOBs)
  13. APPLY operator — New JOIN syntax made for use with user-defined functions and XML
  14. EXCEPT & INTERSECT operators - EXCEPT returns any distinct values from the left query that are not also found on the right query while INTERSECT returns distinct rows that appear in both result sets.
  15. Dynamic Management Views [DMV] - returns server state information that can be used to monitor the server, check for problems, and to facilitate performance.
  16. Catalog Views - a completely new relational interface to the system catalog metadata.
  17. XML data type - for storing XML in the database.
  18. XQuery - a language that can query structured or semi-structured XML data.

To be continued....

Labels:

Tweet this | Google+ it | Share on FB

« Home | Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »

»

Post a Comment