Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Overview of what’s new for developers in SQL Server “Yukon” James Hamilton General Manager Microsoft Corporation James Hamilton General Manager Microsoft.

Similar presentations


Presentation on theme: "1 Overview of what’s new for developers in SQL Server “Yukon” James Hamilton General Manager Microsoft Corporation James Hamilton General Manager Microsoft."— Presentation transcript:

1 1 Overview of what’s new for developers in SQL Server “Yukon” James Hamilton General Manager Microsoft Corporation James Hamilton General Manager Microsoft Corporation Session Code: DAT300 (repeat session)

2 2 Agenda Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks Summary Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks Summary

3 3 Early Database Programmability Early DB servers were non-extensible Fixed set of types w/o server-side code Stored Procs began extensible DB revolution in late 80’s Financial community was quick to adopt Why stored procedures? Abstraction layer Application specific abstractions Business logic & rich constraint enforcement Security on application abstractions Data intensive code closer to data Stored procedures heavily used Stored proc languages functionally weak, proprietary, with poor dev tool support Early DB servers were non-extensible Fixed set of types w/o server-side code Stored Procs began extensible DB revolution in late 80’s Financial community was quick to adopt Why stored procedures? Abstraction layer Application specific abstractions Business logic & rich constraint enforcement Security on application abstractions Data intensive code closer to data Stored procedures heavily used Stored proc languages functionally weak, proprietary, with poor dev tool support

4 4 Database Programmability Directions Server-side DB programming trends Data-intensive code still is run close to data Symmetric programming language Modern languages with high quality tools Leverage programming language community progress Multiple languages & rich development tools Abstract data types, Inheritance, exception handling, encapsulation,.. Rich libraries & application frameworks Server-side DB programming trends Data-intensive code still is run close to data Symmetric programming language Modern languages with high quality tools Leverage programming language community progress Multiple languages & rich development tools Abstract data types, Inheritance, exception handling, encapsulation,.. Rich libraries & application frameworks

5 5 Agenda Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks Summary Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks Summary

6 6.NET Framework Integration Key Features Server-side programming environment for: User Defined Functions, Stored Procedures, Triggers User Defined Types, user defined Aggregates In-Proc Data Access (ADO.NET V2 - Whidbey) Common ADO.NET Programming Model Both Mid-tier/data tier Security Integration of SQL and CLR security Three levels of code access security Safe, External-Access (verifiable), Unsafe Tight integration with Visual Studio Authoring, debugging, deployment, & profiling Server-side programming environment for: User Defined Functions, Stored Procedures, Triggers User Defined Types, user defined Aggregates In-Proc Data Access (ADO.NET V2 - Whidbey) Common ADO.NET Programming Model Both Mid-tier/data tier Security Integration of SQL and CLR security Three levels of code access security Safe, External-Access (verifiable), Unsafe Tight integration with Visual Studio Authoring, debugging, deployment, & profiling

7 7 VS.NET Project Assembly: “TaxLib.dll” VB,C#,C++ Build SQL Server SQL Data Definition: SQL Data Definition: create assembly … create function … create procedure … create trigger … create type … SQL Queries: tax(sal,state) select sum(tax(sal,state)) from Emp where county = ‘King’ Runtime hosted by SQL (in-proc) The Developer Experience

8 8 Authoring/Debugging/Deploying New Visual Studio project type in “Whidbey” for “Yukon” managed code Server debug integration Full debugger visibility Set breakpoints anywhere Single step support: Between languages: T-SQL, C#, VB, & C++ Between deployment tiers: E.g. ASP.NET, through SQL Server stored proc call, & back to mid-tier New Visual Studio project type in “Whidbey” for “Yukon” managed code Server debug integration Full debugger visibility Set breakpoints anywhere Single step support: Between languages: T-SQL, C#, VB, & C++ Between deployment tiers: E.g. ASP.NET, through SQL Server stored proc call, & back to mid-tier

9 9 “Yukon” and the.NET Framework Tom Rizzo Director SQL Server Tom Rizzo Director SQL Server

10 10.NET Integration Key Theme: Choice & Control Choice of where to run logic Database, for logic that runs close to data Mid-tier, for logic that scales out Symmetric programming model Leverage skills mid-tier & server Safe extended stored proc replacement Choice of programming language C#, VB.NET, & Managed C++, for a safe, modern execution environment T-SQL enhancements continue Right choice for data-intensive procedures Choice of where to run logic Database, for logic that runs close to data Mid-tier, for logic that scales out Symmetric programming model Leverage skills mid-tier & server Safe extended stored proc replacement Choice of programming language C#, VB.NET, & Managed C++, for a safe, modern execution environment T-SQL enhancements continue Right choice for data-intensive procedures

11 11 Agenda Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks Summary Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks Summary

12 12 TSQL Enhancements Data types: Varchar(max) & XML Recursive Queries (ANSI standard syntax) Exception Handling Handles transaction abort (catch) Statement-level recompile Fewer recompiles & less costly DDL Triggers Queuing Primitives Data types: Varchar(max) & XML Recursive Queries (ANSI standard syntax) Exception Handling Handles transaction abort (catch) Statement-level recompile Fewer recompiles & less costly DDL Triggers Queuing Primitives

13 13 Data Access API Enhancements: ADO.NET V2 Multiple active result sets (MARS) Object Persistence FX (ObjectSpaces) Query notifications – for cache invalidation Server cursors (SqlResultSet) Asynchronous client access Bulk update, paging, and batching XML Data type support User Defined Type (UDT) support Multiple active result sets (MARS) Object Persistence FX (ObjectSpaces) Query notifications – for cache invalidation Server cursors (SqlResultSet) Asynchronous client access Bulk update, paging, and batching XML Data type support User Defined Type (UDT) support

14 14 Full-text Enhancements Performance & Scalability Index and Query Performance Tested to over 2,000,000,000 rows Index scales near linearly with data Administrative integration Transportability via database attach/detach Integrated backup, restore & recovery Full-Text DDL for easier administration Functionality Thesaurus Diacritic sensitivity/insensitivity Multi-column full-text queries supported CONTAINS((col1,col2), ‘Yukon’) Support for XML data type Performance & Scalability Index and Query Performance Tested to over 2,000,000,000 rows Index scales near linearly with data Administrative integration Transportability via database attach/detach Integrated backup, restore & recovery Full-Text DDL for easier administration Functionality Thesaurus Diacritic sensitivity/insensitivity Multi-column full-text queries supported CONTAINS((col1,col2), ‘Yukon’) Support for XML data type

15 15 Agenda Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks Summary Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks Summary

16 16 XML Scenarios Data Exchange… XML data Point-of-Sales Supplier Platform independent transport format Platform independent transport format Loosely-coupled systems Loosely-coupled systems B2B, B2C, work flow, … B2B, B2C, work flow, …

17 17 XML Scenarios Semi-structured storage… XML Datatype Loosely structured data Data with a dynamic schema XML Views Mixed data – structured/unstructured XML stores w/o relational support challenged XML Datatype Loosely structured data Data with a dynamic schema XML Views Mixed data – structured/unstructured XML stores w/o relational support challenged First NameLast NameAddressPhoneXML data type

18 18 XML data type Native SQL type Use for column, variable or parameter CREATE TABLE docs (id INT PRIMARY KEY, xDoc XML NOT NULL) Store un-typed or typed XML instances Well-formed and validation checks Optional XML Schema enforcement XML data type Native SQL type Use for column, variable or parameter CREATE TABLE docs (id INT PRIMARY KEY, xDoc XML NOT NULL) Store un-typed or typed XML instances Well-formed and validation checks Optional XML Schema enforcement Native XML Store XML Data Type

19 19 Native XML Store XML Index Create XML index on XML column CREATE XML INDEX idx_1 ON docs (xDoc) Creates indexes on tags, values & paths Speeds up queries Entire query is optimized Same industry leading cost based optimizer Indexes are used as available Create XML index on XML column CREATE XML INDEX idx_1 ON docs (xDoc) Creates indexes on tags, values & paths Speeds up queries Entire query is optimized Same industry leading cost based optimizer Indexes are used as available

20 20 Native XML Store XML Query 1@id=123 3@id=30 1 Sort Search 3NULL  XQuery: query XML documents & data Standards-based: W3C working draft In document 123, return section heading of section 3 and later SELECT id, xDoc::query( 'for $i in /doc[@id = 123]//sec[@num >= 3] return {data($i/heading)} ') FROM docs XQuery: query XML documents & data Standards-based: W3C working draft In document 123, return section heading of section 3 and later SELECT id, xDoc::query( 'for $i in /doc[@id = 123]//sec[@num >= 3] return {data($i/heading)} ') FROM docs

21 21 “Yukon” and XML Tom Rizzo Director SQL Server Tom Rizzo Director SQL Server

22 22 XML Views Overview Default XML view of relational data User-defined XML views Specified using schema mapping Decouples mapping from domain specific schemas Default XML view of relational data User-defined XML views Specified using schema mapping Decouples mapping from domain specific schemas First NameLast NameAddressPhoneXML data type XML View Bul k loa d XQuery, Updates

23 23 XML Programming Platform Rich APIs, tools XMLAdapter, XMLReader, XMLWriter, Schema validation, and XQuery support XQuery builder XML Editor Support for new standards XPath 2.0 High perf XML Parsing & XSLT engines XML data type supported in ADO.NET XML Datatype/XQuery (DAT402, Wed 10:00 152/153) Yukon and SOAP (DAT407, Wed 5:00 515AB) Rich APIs, tools XMLAdapter, XMLReader, XMLWriter, Schema validation, and XQuery support XQuery builder XML Editor Support for new standards XPath 2.0 High perf XML Parsing & XSLT engines XML data type supported in ADO.NET XML Datatype/XQuery (DAT402, Wed 10:00 152/153) Yukon and SOAP (DAT407, Wed 5:00 515AB)

24 24 Agenda Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks Summary Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks Summary

25 25 HTTP/SOAP Features SQL & stored proc calls via HTTP/SOAP Easy, standards based connectivity from Unix platforms to SQL Server Provides native HTTP listening HTTP endpoint specifying URL, port, reqs Publish WSDL for endpoints Standard-based SOAP 1.1 and 1.2, WSDL 1.1, inlined XSD Windows and SQL authentication (SSL only) Stored Proc can return result as DataSet Compatible with mid-tier programming model SQL & stored proc calls via HTTP/SOAP Easy, standards based connectivity from Unix platforms to SQL Server Provides native HTTP listening HTTP endpoint specifying URL, port, reqs Publish WSDL for endpoints Standard-based SOAP 1.1 and 1.2, WSDL 1.1, inlined XSD Windows and SQL authentication (SSL only) Stored Proc can return result as DataSet Compatible with mid-tier programming model

26 26 “Yukon” and Web Services Tom Rizzo Director SQL Server Tom Rizzo Director SQL Server

27 27 Agenda Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks SQL Service Broker SQL Server Notification Services SQL Server Reporting Services Summary Database Programming Evolution.NET Framework Integration Data Access and Programmability XML Support Web Services Support New Application Frameworks SQL Service Broker SQL Server Notification Services SQL Server Reporting Services Summary

28 28 New Application Frameworks Service Broker Asynchronous, loosely coupled programming pattern Support for queues & service processes Notification Services High scale event based notification system SQL Server, File system, or custom event providers Delivery: Email,.Net alerts, file, HTTP, custom distributors Reporting Services Rich data services no longer an extra cost component Sources: SQL, Oracle, XML/A, ODBC, OLE/DB, Custom Output format: HTML, Excel, PDF, Custom Service Broker Asynchronous, loosely coupled programming pattern Support for queues & service processes Notification Services High scale event based notification system SQL Server, File system, or custom event providers Delivery: Email,.Net alerts, file, HTTP, custom distributors Reporting Services Rich data services no longer an extra cost component Sources: SQL, Oracle, XML/A, ODBC, OLE/DB, Custom Output format: HTML, Excel, PDF, Custom

29 29 Summary SQL Server.Net Integration Rich, multi-lingual programming model Industry leading development tools Improved ADO.NET data access stack Deep server-side storage services Integrated Web Services support Three New application frameworks Service Broker Notification Services Reporting Services SQL Server.Net Integration Rich, multi-lingual programming model Industry leading development tools Improved ADO.NET data access stack Deep server-side storage services Integrated Web Services support Three New application frameworks Service Broker Notification Services Reporting Services

30 30 © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

31


Download ppt "1 Overview of what’s new for developers in SQL Server “Yukon” James Hamilton General Manager Microsoft Corporation James Hamilton General Manager Microsoft."

Similar presentations


Ads by Google