Agenda <ul><li>History of MS SQL Server </li></ul><ul><li>Introduction to SQL Server </li></ul><ul><li>Enhanced UI for MS ...
History of MS SQL Server
<ul><li>In 1988, Microsoft released its first version of SQL Server. It was designed for the OS/2 platform and was develop...
History of MS SQL Server <ul><li>In 1997, Microsoft released version 6.5 Enterprise Edition. </li></ul><ul><li>In 1998, Mi...
Introduction to SQL Server
Introduction to SQL Server SQL Server is a client server based relational database management system
Enhanced UI for MS SQL Server 2005
Management Studio for SQL Server 2005 <ul><li>In SQL Server Management Studio, the Enterprise Manager and Query Analyzer a...
Management Studio for SQL Server 2005 To make life easier, the SQL Server Management Studio includes an updated Template E...
Management Studio for SQL Server 2005 SQL Server Management Studio also allows you to access an Object Browser for all reg...
Management Studio for SQL Server 2005 <ul><li>Many a time, when we generate Ad-hoc Reports and copy the results into sprea...
Few New Features of MS SQL Server 2005
Few New Features of SQL Server 2005 <ul><li>C ommon  T able  E xpressions </li></ul><ul><li>Improved Error Handling </li><...
Common Table Expression (CTE) <ul><li>A common table expression is an expression that returns a temporary named result set...
Syntax of Common Table Expression <ul><li>A Common Table Expression contains three core parts:  </li></ul><ul><li>The CTE ...
Example for Common Table Expression
Improved Error Handling <ul><li>It introduces soft error control into T-SQL, the same kind available in standard programmi...
Syntax for Error Handling
DDL Triggers <ul><li>Triggers are not new to SQL Server. But prior to SQL Server 2005 triggers were DML triggers, which we...
Syntax for DDL Triggers <ul><li>CREATE TRIGGER  trigger_name  </li></ul><ul><li>ON { ALL SERVER | DATABASE }  </li></ul><u...
Query Notifications <ul><li>SQL Server 2005 introduced query notifications, new functionality that allows an application t...
Query Notifications  ..Cont <ul><li>Applications can take advantage of query notifications to reduce round trips to the da...
ROW_NUMBER()  <ul><li>Returns the sequential number of a row within a partition of a result set, starting at 1 for the fir...
PIVOT <ul><li>In earlier versions of SQL Server there was not a simple way to create cross-tab queries, but a new option i...
PIVOT  ..Cont
  PIVOT  ..Cont
<ul><li>There are three pieces that need to be understood in order to construct the query </li></ul><ul><li>The  SELECT  s...
Upcoming SlideShare
Loading in...5
×

New features of sql server 2005

4,324

Published on

1 Comment
1 Like
Statistics
Notes
  • http://dbmanagement.info/Tutorials/SQL_Server.htm
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
4,324
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
84
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

New features of sql server 2005

  1. 1. Agenda <ul><li>History of MS SQL Server </li></ul><ul><li>Introduction to SQL Server </li></ul><ul><li>Enhanced UI for MS SQL Server 2005 </li></ul><ul><li>New Features of SQL Server 2005 </li></ul><ul><li>References </li></ul>
  2. 2. History of MS SQL Server
  3. 3. <ul><li>In 1988, Microsoft released its first version of SQL Server. It was designed for the OS/2 platform and was developed jointly by Microsoft and Sybase. </li></ul><ul><li>During the early 1990s, Microsoft began to develop a new version of SQL Server for the NT platform. </li></ul><ul><li>In 1994, Microsoft and Sybase formally ended their partnership. </li></ul><ul><li>In 1995, Microsoft released version 6.0 of SQL Server. This release was a major rewrite of SQL Server's core technology. </li></ul>History of MS SQL Server
  4. 4. History of MS SQL Server <ul><li>In 1997, Microsoft released version 6.5 Enterprise Edition. </li></ul><ul><li>In 1998, Microsoft released version 7.0 of SQL Server, which was a complete rewrite of the database engine. </li></ul><ul><li>In 2000, Microsoft released SQL Server 2000. SQL Server version 2000 is Microsoft's most significant release of SQL Server to date. </li></ul><ul><li>In 2005 , Microsoft released SQL Server 2005 and now the latest version is SQL Server 2008. </li></ul>
  5. 5. Introduction to SQL Server
  6. 6. Introduction to SQL Server SQL Server is a client server based relational database management system
  7. 7. Enhanced UI for MS SQL Server 2005
  8. 8. Management Studio for SQL Server 2005 <ul><li>In SQL Server Management Studio, the Enterprise Manager and Query Analyzer are combined into one common interface, allowing you to manage your servers graphically and to write Transact SQL. </li></ul>
  9. 9. Management Studio for SQL Server 2005 To make life easier, the SQL Server Management Studio includes an updated Template Explorer (View | Template Explorer or [Ctrl][Alt]T) that lays out the structure of more than 100 objects and tasks in Transact SQL, including administrative tasks like backing up and restoring databases.
  10. 10. Management Studio for SQL Server 2005 SQL Server Management Studio also allows you to access an Object Browser for all registered servers, which combines the features of the Object Browser from Query Analyzer with the Server tree view from Enterprise Manager.
  11. 11. Management Studio for SQL Server 2005 <ul><li>Many a time, when we generate Ad-hoc Reports and copy the results into spread sheet, we had to manually write the headers. </li></ul><ul><li>But management studio has an option for that. </li></ul>
  12. 12. Few New Features of MS SQL Server 2005
  13. 13. Few New Features of SQL Server 2005 <ul><li>C ommon T able E xpressions </li></ul><ul><li>Improved Error Handling </li></ul><ul><li>DDL Triggers </li></ul><ul><li>Query Notifications </li></ul><ul><li>Row_Number() </li></ul><ul><li>PIVOT operators </li></ul>
  14. 14. Common Table Expression (CTE) <ul><li>A common table expression is an expression that returns a temporary named result set from a simple or complex query, defined within the execution scope of a SELECT , INSERT , UPDATE , or DELETE statement. </li></ul><ul><li>A CTE is a &quot;temporary result set&quot; that exists only within the scope of a single SQL statement. </li></ul>
  15. 15. Syntax of Common Table Expression <ul><li>A Common Table Expression contains three core parts: </li></ul><ul><li>The CTE name (this is what follows the WITH keyword) </li></ul><ul><li>The column list ( optional ) </li></ul><ul><li>The query (appears within parentheses after the AS keyword) </li></ul>
  16. 16. Example for Common Table Expression
  17. 17. Improved Error Handling <ul><li>It introduces soft error control into T-SQL, the same kind available in standard programming languages. </li></ul><ul><li>With TRY/CATCH , errors can be taken care of on the server side without involving the client side at all. </li></ul>
  18. 18. Syntax for Error Handling
  19. 19. DDL Triggers <ul><li>Triggers are not new to SQL Server. But prior to SQL Server 2005 triggers were DML triggers, which were raised only when there is an INSERT,UPDATE or DELETE action. A new table, database or user being created raises a DDL event and to monitor those, DDL triggers were introduced in SQL Server 2005. </li></ul>
  20. 20. Syntax for DDL Triggers <ul><li>CREATE TRIGGER trigger_name </li></ul><ul><li>ON { ALL SERVER | DATABASE } </li></ul><ul><li>[ WITH <ddl_trigger_option> [ , ...n ] ] </li></ul><ul><li>{ FOR | AFTER } { event_type | event_group } [ ,... n ] </li></ul><ul><li>AS { sql_statement [ ; ] [ ... n ] | EXTERNAL NAME < method specifier > [ ; ] } </li></ul>
  21. 21. Query Notifications <ul><li>SQL Server 2005 introduced query notifications, new functionality that allows an application to request a notification from SQL Server when the results of a query change. </li></ul><ul><li>Query notifications allow programmers to design applications that query the database only when there is a change to information that the application has previously retrieved. </li></ul>
  22. 22. Query Notifications ..Cont <ul><li>Applications can take advantage of query notifications to reduce round trips to the database. </li></ul><ul><li>With query notifications, the application issues a command that contains a query and a request for notification. The application caches the results of the query or dynamic content generated from the query results. When the application receives the query notification, the application clears the cached content. </li></ul>
  23. 23. ROW_NUMBER() <ul><li>Returns the sequential number of a row within a partition of a result set, starting at 1 for the first row in each partition. </li></ul><ul><li>Syntax: </li></ul>
  24. 24. PIVOT <ul><li>In earlier versions of SQL Server there was not a simple way to create cross-tab queries, but a new option in SQL Server 2005 has made this a bit easier. </li></ul><ul><li>What this allows you to do is to turn query results on their side, so instead of having results listed down like the listing below, you have results listed across. </li></ul>
  25. 25. PIVOT ..Cont
  26. 26. PIVOT ..Cont
  27. 27. <ul><li>There are three pieces that need to be understood in order to construct the query </li></ul><ul><li>The SELECT statement </li></ul><ul><li>The query that pulls the raw data to be prepared </li></ul><ul><li>The PIVOT expression </li></ul>PIVOT …Cont
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×