Download presentation
Presentation is loading. Please wait.
Published byByron Walton Modified over 9 years ago
1
Meinrad Weiss Principal Consultant Trivadis AG
2
Core technologies Microsoft, Oracle, IBM, Open Source Core systems Individual applications (SCM, ERP, CRM) Business Intelligence Business Communication Application Performance Management Application Development Managed Services Security Training
3
Currently 12 locations with over 500 employees Baden, Basel, Bern, Lausanne, Zurich Düsseldorf, Frankfurt, Freiburg, Hamburg, Munich, Stuttgart Vienna Financially independent and sustainably profitable Key figures in 2007 Consolidated income: CHF 98 million / EUR 60 million Over 1‘500 projects with more than 600 clients Over 125 Service Level Agreements About 5'000 training participants per year Research budget: CHF 6 million / EUR 3.6 million
4
Simplify existing scenarios Features for new scenarios Just profit and Infrastructure Star Join Query Transparent Data Encryption Resource Governor Date Types Table Type Parameters Merge Statement Grouping Sets Sparse Columns Spatial Type FileStream Type
5
Sum (Amount) of red Products in Basel
6
Fact Table Scan Customer Dim Hash Join Product Dim
7
Fact Table Scan Customer Dim Hash Join Product Dim SQL Server 2005 can create one bitmap filter SQL Server 2005 can create one bitmap filter Bitmap Filter 1 “red”
8
Fact Table Scan Customer Dim Hash Join Product Dim SQL Server 2008 can create multiple bitmap filters SQL Server 2008 can create multiple bitmap filters Bitmap Filter 2 “Basel” Bitmap Filter 1 “red”
9
Fact Table Scan Customer Dim Hash Join Product Dim SQL Server 2008 can move and reorder the filters SQL Server 2008 can move and reorder the filters Bitmap Filter 2 “Basel” Implemented as Bloom filter http://en.wikipedia.org/wiki/Bloom_filterhttp://en.wikipedia.org/wiki/Bloom_filter The filters can be pushed down into the fact table scan and eliminate almost all the rows that would be eliminated later by the joins Bitmap Filter 1 “red”
10
Enterprise Edition Feature Works only on parallel plans FK relationship must be (Trivadis best practices) One Attribute Not null, Int/Big Int is preferred In row optimization, Filter is applied during read of phys. Scan Source: “Christian Kleinerman Microsoft”
11
Simplify existing scenarios Features for new scenarios Just profit and Infrastructure Star Join Query Transparent Data Encryption Resource Governor Date Types Table Type Parameters Merge Statement Grouping Sets Sparse Columns Spatial Type FileStream Type
12
Simplified programming (date, time) Require less resources SQL ServerMax PrecisionRange ADO.NET date1 day0001-01-01 to 9999-12-31 DateTime time100 nanosec00:00:00 to 23:59:59.9999999 TimeSpan datetime2100 nanosec1-1-1 to 9999-12-31 DateTime datetimeoffset100 nanosec1-1-1 to 9999-12-31 +/-14:00 DateTimeOffset More functionality (datetime2, datetimeoffset) Higher precision Time zone awareness
13
Allocates only 3 Bytes (instead of 8 Bytes datetime) Convert or Cast will prevent any use of an index
15
CLR user-defined types (UDT) allows.NET classes to run as SQL procedures/functions Format.UserDefined =“SqlUserDefinedTypeAttribute” Developer must implement IBinarySerialize interface Previous limit of 8,000 bytes removed and now is the same as other max types 2,147,483,647 bytes or ~ 2 GB (LOB limit)
16
DML statement combining multiple operations into one Both sides can be a table or a view source target Merge Match: UPDATE No Match: INSERT No Source Match: DELETE XYZ
17
MERGE Stock S USING Trades T ON S.Stock_ID = T.Stock_ID WHEN MATCHED AND (Qty + Delta = 0) THEN DELETE -- delete stock if Qty reaches 0 WHEN MATCHED THEN -- delete takes precedence over update UPDATE SET Qty += Delta WHEN NOT MATCHED THEN INSERT VALUES (Stock, Delta) OUTPUT $action, T.Stock, inserted.Delta;
18
A user-defined type represents the definition of a table structure Is used to Declare table-valued parameters for stored procedures or functions Declare table variables
19
New parameter type for Stored Procedures and Functions Data are passed by reference to avoid overhead of a copy Must be passed as Read-Only Parameters Replace often temp tables Less overhead and Cleaner Design Can be used in select from Restrictions No column statistics Cannot be used in Select Into
22
One query that produces Multiple groupings Returns a single result set Result set is equivalent to a UNION ALL of differently grouped rows Simplifies writing reports with multiple groupings With improved query performance
23
select DimDate.calendaryear as Year,DimDate.calendarquarter as Quarter,DimTerritory.salesterritorycountry as Country,sum(FactSales.salesamount) as SalesAmount from dbo.factresellersales FactSales inner join dbo.dimtime DimDate on FactSales.orderdatekey = DimDate.timekey inner join dbo.dimsalesterritory DimTerritory on FactSales.salesterritorykey = DimTerritory.salesterritorykey where DimDate.calendaryear in (2003,2004) group by grouping sets ((calendaryear, calendarquarter, salesterritorycountry),(calendaryear, calendarquarter),()) order by DimDate.calendaryear, DimDate.calendarquarter, DimTerritory.salesterritorycountry
24
Property Bag Scenarios: Distinct Customized property sets associated with data Property Name, Value pairs Large number of unique properties, user annotations Examples Content/collaboration systems, Content stores Share Point Server, Documentum Databases with heterogeneous Record Types in one Table Type specific properties, inherited properties in a type hierarchy Examples Product Catalogs (commerce Server, Amazon) Location/business specific properties(Virtual Earth)
25
Simple implementation of class hierarchies in relational tables create table Person (IDint not null primary key,Name varchar(255) not null,BirthDayDate not null,[Type] varchar(25) not null,Salary money sparse,Departmentvarchar(25) sparse,Ratingvarchar(2) sparse,LastContactDate sparse ),...,LastContact Date sparse,TypeProperties XML COLUMN_SET FOR ALL_SPARSE_COLUMNS )
26
0 Bytes stored for NULL Values ~20% CPU overhead for non-null value access Additional 2- 4 bytes for non-null values Sparse columns are beneficial when space savings >40% Tables can support large number of sparse columns 30K columns, 1K indexes, 30K statistics Requires the presence/addition of a sparse column set when # of columns >1024 Select * will return all non-sparse columns + sparse_column_ set Certain types of columns can not be marked as sparse Computed columns UDT Identity RowGuid FileStream etc
27
select * from PersonWithout_COLUMN_SET select * from Person select ID, Name, BirthDay, [Type], Salary, Department, Rating, LastContact from Person
28
create table Project (id int primary key,Name varchar(255) not null,SAP_Number varchar(25) null ) go create unique index UXProject on Project (SAP_Number); go insert into Project values (1, 'SQL Srv 2008', 'AF34-12-65') insert into Project values (2, 'Win Srv 2008', 'BF34-12-65') insert into Project values (3, 'VS 2008', null) insert into Project values (4, 'WPF', null) drop index Project.UXProject go create unique index UXProject on Project (SAP_Number) where SAP_Number is not null 2 nd Insert Fails
29
Size Traditional Index US FR CH FL … … … … … … This Index will never be used for ‘US‘, 'FR‘, … queries Not selective enough This Index will never be used for ‘US‘, 'FR‘, … queries Not selective enough CH FL … … … … Index Nationality <> 'US', 'FR' Filtered Index … … Table
30
Simplify existing scenarios Features for new scenarios Just profit and Infrastructure Star Join Query Transparent Data Encryption Resource Governor Date Types Table Type Parameters Merge Statement Grouping Sets Sparse Columns Spatial Type FileStream Type
31
geography data type Geodetic (“Round Earth”) geospatial model Define points, lines, and areas with longitude and latitude Account for planetary curvature and obtain accurate “great circle” distances geometry data type Planar (“Flat Earth”) geospatial model Define points, lines, and areas with coordinates Use for localized areas or non- projected surfaces such as interior spaces 2D Vector Support in SQL Server 2008
32
Implemented as large CLR user-defined type (UDT) Methods for computing STGeomFromText ('LINESTRING (100 250, 150 100)', 0) STIntersection( ) STIntersects( ) … SQLServer: Geometry, Geography.Net: SqlGeometry, SqlGeography Geometry Following Open Geospatial Consortium Simple features for SQL (OGC/SQL MM, ISO 19125)
35
4.2.3
36
Requires Clustered unique index on table idgeometry 1g1 2g2 3g3 Base Table TInternal Table for Index idcell_id 17 37 38 39 310 113 220
37
ID: 123 Name: Hans Age: 32 Mixed (Database + Filesystem) BLOB in Database FileStream ID: 123 Name: Hans Age: 32 ID: 123 Name: Hans Age: 32 Cheap Streaming Performance Synchronization Double Management Integrated Management Transact. Consistency Size Limits (2 GB) Heavy load on Log File Integrated Management Transact. Consistency Streaming Support Read Committed Isolation
38
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 e.g. Security Size limit is the file system volume size
39
Begin Transaction select Get_FileStream_transaction_context() as TxCtx,PERS_CV.PathName() as UNCPath from Person The Keys to the Win32 Interface
40
Win32 Application IO Manager Rdr Srv SQL Server FS Agent NTFS ClientSQL Server 2008 User Mode IO Manager SQL Server FS Driver Kernel Mode Active Transaction TxCtx
42
Failover clustering FileStream Filegroups must be put on a shared disk Some Replication Limits See http://msdn2.microsoft.com/en-us/library/bb895334(SQL.100).aspx SQL Server does not support database snapshots for FileStream data filesdatabase snapshots Rest of the database can be ‘snapshoted’ Database mirroring does not support FileStream Log Shipping is supported ;-)
43
Don’t forget your DBA Insert, Update and Delete operations have minimal impact on Transaction Log File of DB But they will affect the size (and time) of Backups Both Database and TX-Log Backups FileStream Data can only be stored on “local” Server drives Never loose the FileStream Data drive If you loose it then you have the choice between A probably inconsistent Database Lost Transactions
44
SQL Server 2008 has many improvements for Developers (and also BI and DBA) Simplify existing work Productivity Open the door for new scenarios Beyond relational Improve Security and Reliability The new features are already very stable and well documented “Es git en heisse Summer hür, …”
45
Trivadis TechnoCircle SQL Server 2008: Was ist neu und relevant für DBA’s und IT Professionals Die essentiellen Neuerungen für Entwickler Das Herz einer modernen Business Intelligence Plattform Next Generation Data Centric Applications with Visual Studio 2008 and SQL Server 2008 Mit Buchtaufe von Christian Nagel Demo an unserem Stand WPF goes Windows Trivadis Framework Datenbank-Setup “Best Practices” und “SharePoint’s Umsetzung ” Wettbewerb und Gutschein
46
© 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.
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.