Presentation is loading. Please wait.

Presentation is loading. Please wait.

Microsoft Confidential Jon Jahren Produktsjef Applikasjonsplattform Microsoft.

Similar presentations


Presentation on theme: "Microsoft Confidential Jon Jahren Produktsjef Applikasjonsplattform Microsoft."— Presentation transcript:

1 Microsoft Confidential Jon Jahren Produktsjef Applikasjonsplattform Microsoft

2 Microsoft Confidential Integrate any data Deliver relevant information Drive actionable insights Manage by policies Simplify Application Development Store any information Protect your information Ensure business continuity Predictable response Your Data Any Place, Any Time

3 Microsoft Confidential Dynamic Development T-SQL improvements Date & Time enhancements Improvements with CLR integration Table types & Table-valued parameters Beyond Relational Full-text improvements Filestream storage Hierarchy management Sparse columns Filtered indexes Spatial support

4 Microsoft Confidential

5 Can you spot the feature? Continued investment and innovation in T-SQL DECLARE @t int = 5; INSERT dbo.myT VALUES (‘WA’, @t), (‘FL’, @t+1); UPDATE dbo.myT SET instances+=1; CTP 3

6 Microsoft Confidential Hi Could you please provide: Separate date & time data types Larger fractional second precision Larger range of dates Time zone awareness Database migration – compatibility with competitors’ solutions Thanks,

7 Microsoft Confidential 4 new data types SQL Standard compatible Date only From 0001-01-01 to 9999-01-01 in Gregorian calendar Date Time only Optional user specifiable fractional precisions up to 100 nanoseconds Time (n) Time-zone aware/preserved UTC datetime Optional user specifiable fractional precisions up to 100 nanoseconds DateTimeOffset(n) Large date range Optional user specifiable fractional precisions up to 100 nanoseconds (Default) Time-zone NOT aware DateTime2 (n) CTP 4

8 Microsoft Confidential CREATE TABLE t1 (c1 DATE, c2 TIME(3), c3 DATETIME2(7) NOT NULL DEFAULT GETDATE(), c4 DATETIMEOFFSET CHECK (c4<CAST(GETDATE() AS DATETIMEOFFSET(0))) ); INSERT INTO t1 VALUES ('0001-01-01', '23:59:59', '0001-12-21 23:59:59.1234567', '0001-10-21 23:59:59.1234567 -07:00'); INSERT INTO t1 VALUES ('9999-12-31', '23:59:59', '9999-12-31 23:59:59.1234567', '1111-10-21 23:59:59.1234567 -07:00'); SELECT c4, DATEPART(TZOFFSET, c4), DATEPART(ISO_WEEK, c4), DATEPART(MICROSECOND, c4) FROM t1; CTP 4

9 Microsoft Confidential User-defined types Support for large instances (>8000) User-define aggregates Support for large serialization (>8000) Multi-column input Table-valued functions Support for Order declaration Enforced at runtime CREATE FUNCTION myTVF() RETURNS TABLE (@i int, @j int, @k int) WITH ORDER i ASC, j DESC AS EXTERNAL NAME … CTP 5

10 Microsoft Confidential Have you ever wanted to do something like: create proc ins_data (@t table (a int)) as … And got something like: CTP 3

11 Microsoft Confidential User-defined Table Types A new user defined type Aligned with inlined table definition for table variables Can be used for declaring table variables Can define indexes and constraints New Catalog view for table types Sys.table_types TVP (Table-valued Parameters) for Sps/UDFs Benefits Usability, Type Matching, Precise Typing CTP 3

12 Microsoft Confidential

13 Improved XML Schema Validation Support for lax validation Full support for storing & validating Office 12 Document formats Full xs:dateTime support Support for no timezone values timezone preservation Support for lists and union types Added support for let-clause in XQuery Added support insert sql:variable(“@xml”) into /a/b CTP 5

14 Microsoft Confidential Full-Text Indexes fully integrated into SQL Server Make mixed queries perform and scale SELECT * FROM candidates WHERE CONTAINS(resume,’”SQL Server”’) AND ZipCode = ‘98052’ CTP 6

15 Microsoft Confidential Storage Attribute on VARBINARY(MAX) Unstructured data stored directly in the file system (requires NTFS) Dual Programming Model TSQL (Same as SQL BLOB) Win32 Streaming APIs with T-SQL transactional semantics Data Consistency Integrated Manageability Back Up / Restore Administration Size limit is the file system volume size SQL Server Security Stack Store BLOBs in DB + File System ApplicationApplication BLOB DB CTP 5

16 Microsoft Confidential New data type: HierarchyId Rich built-in methods for manipulating hierarchies Simplifies storage and querying of hierarchical data Supports depth-first and breadth-first indexes CTP 4

17 Microsoft Confidential Scenarios Semi-structured Data: Property Set Storage Databases with heterogeneous data Distinct properties associated with subsets of data Large Number of sparsely populated properties Examples Product Catalogs Distinct Product specific properties Document Management Systems Document specific/user-defined properties GPS/Mapping Systems Location/Business specific Properties CTP 6

18 Microsoft Confidential NULL values: 0 bytes. Non-NULL: +(2-4)b. Slightly slower to access CTP 6

19 Microsoft Confidential Very large number of sparse columns per table – 100,000! CTP 6

20 Microsoft Confidential Column Set A logical grouping for all sparse columns in a table Create Table Products(Id int, Type nvarchar(16), ProductProperties XML COLUMN_SET FOR ALL_SPARSE_COLUMNS); Updateable, computed XML column Select * returns all non-sparse-columns, sparse column set Allows generic retrieval/update of sparse columns as a set Limits are maintained throughout the system CTP 6

21 Microsoft Confidential CTP 6

22 Microsoft Confidential Create index i1 on T(sc1) where C1=A or C1=D; select sc1 from T where c1=A and sc1>5 CTP 6

23 Microsoft Confidential Create index i1 on T(sc1) where C1=A or C1=D; select sc1 from T where c1=A and sc1>5 Create index i2 on T(sc7) where sc7 IS NOT NULL; select sc1 from T where sc7=5 CTP 6

24 Microsoft Confidential 1 2 3 4 5 HierarchyID Store arbitrary hierarchies of data and efficiently query them Large UDTs No more 8K limit on User Defined Types Sparse Columns Optimized storage for sparsely populated columns Wide Tables Support for hundreds of thousands of sparse columns Filtered Indices Define indices over subsets of data in tables 1 3 4 5 2

25 Microsoft Confidential Provide vector support Target geospatial Spatial data which is referenced to a location on the Earth Typically uses spherical coordinates or projected planar coordinates No restriction on data actually being geospatial Location aware applications become mainstream!

26 Microsoft Confidential Which roads intersect Microsoft’s main campus? SELECT * FROM roads WHERE roads.geom.Intersects(@ms)=1

27 Microsoft Confidential

28

29 Mapping Many applications make direct use of mapping The map may very well be the primary output of these applications Examples: Consumer mapping products (Virtual Earth, etc.) Utility (electrical / water / gas) grid layouts Business geographics Non-Mapping Many applications may make use of spatial data, even if they do not explicitly make maps Examples: Send warehouse pickers on efficient runs Predict bus arrival times Your favorite LOB app here

30 Microsoft Confidential Geometry Geometry can store instances of various types Points, Line strings, Polygons Collections of the above Methods for computing Spatial relationships: intersects, disjoint, etc. Spatial constructions: intersection, union, etc. Metric functions: distance, area Planar is conceptually simpler, but more specialized Geography Very similar interface to geometry Some methods have different semantics Most data commonly available user data is geodetic CTP 5 Spatial Indexing supported for both data types

31 Microsoft Confidential © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "Microsoft Confidential Jon Jahren Produktsjef Applikasjonsplattform Microsoft."

Similar presentations


Ads by Google