SlideShare a Scribd company logo
What’s New for Developers in SQL Server 2008 Mike Taulty, Mike Ormond Developer & Platform Group Microsoft Ltd [email_address]  ( http://www.mtaulty.com ) [email_address]  ( http://www.mikeo.co.uk  )
Agenda Relational++ New data types beyond the traditional RDBMS Data In, Data Out Information from Data Database Applications Core Capabilities & Tooling
Relational++
New Data Types FILESTREAM Extension to varbinary(max) Data is stored in the file system Access with file system API’s or relational API’s HIERARCHY ID Model the traditional employee/manager relationship New Date & Time data types DATE, TIME, DATETIMEOFFSET, DATETIME2 & functions to deal with them
XML Data Type Enhancements Improved schema validation support Supports validation of Office 12 documents Allows for lax content Unions of lists Lists of unions XQuery support FWOR finally becomes FLWOR (the  let  clause) Use of variables in  .modify()  operations
CLR Data Type Enhancements UDTs > 8K possible for CLR implementations Aggregates Multi-input aggregates now possible in CLR implementations  Aggregates > 8K now possible in CLR implementations Sort order on CLR Table Valued Functions Today, SQL spools output from CLR TVF’s and  then  sorts them – often this is redundant
Data Types, XML, CLR
Spatial Data Proliferation of geographical data GPS Systems Virtual Earth, Live Search Maps etc New opportunities for spatially aware apps Route planning Land assessment Territory analysis SQL Server 2008 Storage and retrieval of spatial data using standard SQL syntax
Spatial Data Types Comprehensive Support Flat Earth (Planar) - geometry Round Earth (Geodetic) – geography CLR System Types Microsoft.SqlServer.Types .Geo[metry | graphy] Host of useful spatial methods / properties (OGC) Importing of WKT / WKB (OGC) and GML data High Performance Integrated into SQL 2008 Spatial Index support
Spatial Data in SQL 2008
Semi-Structured Additions Sparse columns Optimised storage for sparsely populated columns Wide Tables Support for hundreds of thousands of sparse columns Filtered Indexes Define indices over subsets of data in tables
Semi-Structured Additions ProducID Description Category Price Current Colour Size Volume Fabric Fitment COSHH 1 Dulux Emulsion Paint 22.95 False Blue - 1.5 - - 8729 2 Roller Tools 3.95 False - L - - - - 3 Rug Home 79.50 False Brown - - Wool - - 4 Bulb Electrical 1.25 True Pearl - - - Screw - 5 Weedkiller Garden 7.99 True - - 1.0 - - 2776 6 Bamboo Garden 35.00 True Yellow - - - - - 7 2x4 Wood 2.95 True - - - - - - 8 ... ... ... ... ... ... ... ... ... ... ProducID Description Category Price Current Colour Size Volume Fabric Fitment COSHH 1 Dulux Emulsion Paint 22.95 False Blue - 1.5 - - 8729 2 Roller Tools 3.95 False - L - - - - 3 Rug Home 79.50 False Brown - - Wool - - 4 Bulb Electrical 1.25 True Pearl - - - Screw - 5 Weedkiller Garden 7.99 True - - 1.0 - - 2776 6 Bamboo Garden 35.00 True Yellow - - - - - 7 2x4 Wood 2.95 True - - - - - - 8 ... ... ... ... ... ... ... ... ... ... ‘ Fixed’ Columns Sparse Columns
Data In, Data Out
SQL Server Integration Services New Script Environment for Script Tasks & Components VSTA replaces VSA (deprecated) C# language programmability More of the familiar VS environment ADO.NET Source and Destination OLEDB source/destinations still there     Data Profiling Task & Viewer
SQL Server Integration Services Data Flow performance In 2005, an execution tree (even with branches) is executed on a single thread In 2008, this is handled differently (i.e.  better ) Lookup Transformation Share cached lookup across packages More granular control over cache use for matched/non-matched data Additional changes elsewhere MERGE, Change Data Capture, Data Types, etc.
Integration Services
Tracking Changes Change Tracking Synchronous - when the DML is committed Detect  net  changes to data Tables/Rows effectively have a version # Good for building one- and two- way sync solutions Change Data Capture Asynchronous - reads transaction log Detect  net  and  incremental  changes to data Good for building one- way sync solutions
Change Tracking & Data Capture
MERGE  DML statement combining multiple operations into one Merge source target match so UPDATE no match so INSERT no source match so DELETE
MERGE statement
ADO.NET Synchronisation Services Synchronisation  Framework Online/Offline Applications 2-tier, N-tier architectures Set of components Sync Classes Client Database SQL Server Compact Edition Server Database Any ADO.NET store “ Service” Based Approach
ADO.NET Synchronisation Services Server Sync Provider Sync Agent Sync Adapters Client Sync Provider Sync Table Sync Group Client DB Server DB Transport Proxy Service
Microsoft Synchronisation Services
Information from Data
Reporting Services
Reporting Services
Reach All your Users with Scalable BI platform Deliver insights throughout your organization Deliver reports of any size at enterprise scale Scale out through read-only Analysis Services storage Enhance analytical capabilities with  more complex computations and aggregations Deploy and manage your BI infrastructure Streamline development of the analysis infrastructure with new cube design tools Optimize cube design with real time best practice alerts  Backup cubes with enhanced scalability Pervasive Insight
Database Applications
Client Library Support for Features Visual Studio 2008 ships with; .NET Framework V3.5 Support for most new SQL 2008 data types Support for table valued parameters Microsoft Synchronization Services SQL Server 2008 ships with; Client library support for some new data types; Microsoft.SqlServer.Types.dll (SqlGeometry, SqlHierarchyId) ADO.NET V3.0 Entity Framework, Data Services ship separately
Table Valued Parameters Stored procedures and functions can now take a table as a parameter Passing “arrays” of data to the server in one go Often done in the past with XML, strings Mechanism Declare table type server side Define parameter to be of table type New ADO.NET parameter type  SqlDbType.Structured Pass  DataTable, IEnumerable<SqlDataRecord>, DbDataReader  into ADO.NET client side
Table Valued Parameters
ADO.NET Entity Framework .NET Entity Provider (Entity SQL) Command Connection Reader Adapter V3.0 Store .NET Data Provider V2.0 Command Connection Reader Adapter V3.0 Conceptual Model Entity Entity relationship Store Model (SSDL) ER Model (CSDL) Mapping (MSL) V3.0 Programming Model Object Relational Mapping LINQ
ADO.NET Entity Framework Schema independence Store independence Higher level constructs Relationships Inheritance Status At Beta 2 Today Tooling at CTP 1 Store .NET Provider V2.0 Conceptual Model .NET Provider (EntitySQL) ORM & LINQ V3.0 Mapping
ADO.NET Entity Framework
ADO.NET Data Services (“Astoria”) Flexible data services for the web URI addressable resources (RESTful) Simple data formats (XML / JSON) Modelling of data with EDM CRUD operations support HTML + Javascript Data (XML, JSON) DLL + XAML Data (XML, JSON) Data (XML, JSON) Mashup UI Data Feeds
Astoria URI Format Data Service URL (special WCF service) Entity Set Name (eg Customers) Optional Predicate Navigation Property (eg Orders) Optional Predicate Querystring Options (eg orderby) http://localhost/service.svc/Customers[ALFKI]/Orders?$orderby=City
ADO.NET Data Services
Core Capabilities
Resource Governor Dynamically monitors & controls access to server resources request Resource Pool 1 Resource Pool 2 Workload Group 1 Workload Group 2 MIN, MAX CPU MIN, MAX RAM MIN, MAX CPU MIN, MAX RAM Workload Group 3 Workload Group 1 Priority Max Request Memory Max Request CPU Time Max DOP Max Requests classify()
Resource Governor
Guiding Procedure Execution More control & visibility of stored procedure execution to aid predictable execution sp_create_plan_guide  accepts XML Showplan output sp_create_plan_guide_from_cache sys.fn_validate_plan_guide Plan guides visibile in Management Studio Monitoring Events –  Plan Guide (Un)Successful Counters –  (Mis)Guided Plan Executions/Sec on SQL Statistics object
Guiding Procedure Execution
Performance Studio Unified framework for capturing “metrics” from SQL Server schedule Interfaces Mgmt Studio S’procs API Dashboard UI post SQL 2008 Data Collector Collection Set Collection Set Collection Set Collection Item Collection Item Collection Item Counter, SQL trace or SQL query
Data Collector
Extended Events (XEvent) High performance eventing system for SQL Integrates with Event Tracing for Windows (ETW) Possibility of end-to-end tracing DDL for managing event sessions on a server “ When” to log Where to send it Data to log Filters
Extended Events
Auditing (not in current CTP) Written to files or event logs Server level auditing Login, Logoff, Create DB, etc. (many) Database level auditing Changes to Users, Roles, Schema, etc. (many) Granular level auditing CRUD + EXECUTE on tables, views, procedures, etc. AUDIT UPDATE ON Employee [BY User1]
Platform Enhancements Transparent Data Encryption (TDE) Encrypt my data on disk transparent to applications Database Compression (not in CTP5) ROW / PAGE Compression Integrated Full Text Search (not in CTP5) Easier to deploy / manage and better performance Declarative Management Framework  Establish policies for monitoring or compliance
Platform Enhancements
MSDN in the UK Visit  http://msdn.co.uk   Newsletter Events Screencasts Blogs
 
Ad

More Related Content

What's hot (20)

Azure Data Lake Analytics Deep Dive
Azure Data Lake Analytics Deep DiveAzure Data Lake Analytics Deep Dive
Azure Data Lake Analytics Deep Dive
Ilyas F ☁☁☁
 
BI 2008 Simple
BI 2008 SimpleBI 2008 Simple
BI 2008 Simple
llangit
 
SQL Server 2008 Highlights
SQL Server 2008 HighlightsSQL Server 2008 Highlights
SQL Server 2008 Highlights
Intergen
 
What's New in SQL Server 2017 since SQL Server 2008 R2
What's New in SQL Server 2017 since SQL Server 2008 R2What's New in SQL Server 2017 since SQL Server 2008 R2
What's New in SQL Server 2017 since SQL Server 2008 R2
Bill Ramos
 
Mapping Data Flows Training deck Q1 CY22
Mapping Data Flows Training deck Q1 CY22Mapping Data Flows Training deck Q1 CY22
Mapping Data Flows Training deck Q1 CY22
Mark Kromer
 
SQL Server 2008 New Features
SQL Server 2008 New FeaturesSQL Server 2008 New Features
SQL Server 2008 New Features
Dan English
 
Sql azure dec_2010 Lynn & Ike
Sql azure dec_2010 Lynn & IkeSql azure dec_2010 Lynn & Ike
Sql azure dec_2010 Lynn & Ike
Ike Ellis
 
Deep Dive into Azure Data Factory v2
Deep Dive into Azure Data Factory v2Deep Dive into Azure Data Factory v2
Deep Dive into Azure Data Factory v2
Eric Bragas
 
Sql Server 2012
Sql Server 2012Sql Server 2012
Sql Server 2012
Performics.Convonix
 
3 App Compat Win7
3 App Compat Win73 App Compat Win7
3 App Compat Win7
llangit
 
Sql server 2019 new features
Sql server 2019 new featuresSql server 2019 new features
Sql server 2019 new features
George Walters
 
Open Source für den geschäftskritischen Einsatz
Open Source für den geschäftskritischen EinsatzOpen Source für den geschäftskritischen Einsatz
Open Source für den geschäftskritischen Einsatz
MariaDB plc
 
Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platfor...
Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platfor...Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platfor...
Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platfor...
Michael Rys
 
Hands-On with U-SQL and Azure Data Lake Analytics (ADLA)
Hands-On with U-SQL and Azure Data Lake Analytics (ADLA)Hands-On with U-SQL and Azure Data Lake Analytics (ADLA)
Hands-On with U-SQL and Azure Data Lake Analytics (ADLA)
Jason L Brugger
 
Ssis 2016 RC3
Ssis 2016 RC3Ssis 2016 RC3
Ssis 2016 RC3
MSDEVMTL
 
Organizational compliance and security SQL 2012-2019 by George Walters
Organizational compliance and security SQL 2012-2019 by George WaltersOrganizational compliance and security SQL 2012-2019 by George Walters
Organizational compliance and security SQL 2012-2019 by George Walters
George Walters
 
SQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best PracticesSQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best Practices
Denny Lee
 
Session 2: SQL Server 2012 with Christian Malbeuf
Session 2: SQL Server 2012 with Christian MalbeufSession 2: SQL Server 2012 with Christian Malbeuf
Session 2: SQL Server 2012 with Christian Malbeuf
CTE Solutions Inc.
 
Msbi
MsbiMsbi
Msbi
Tahseen Firoz
 
Exploring sql server 2016
Exploring sql server 2016Exploring sql server 2016
Exploring sql server 2016
Antonios Chatzipavlis
 
Azure Data Lake Analytics Deep Dive
Azure Data Lake Analytics Deep DiveAzure Data Lake Analytics Deep Dive
Azure Data Lake Analytics Deep Dive
Ilyas F ☁☁☁
 
BI 2008 Simple
BI 2008 SimpleBI 2008 Simple
BI 2008 Simple
llangit
 
SQL Server 2008 Highlights
SQL Server 2008 HighlightsSQL Server 2008 Highlights
SQL Server 2008 Highlights
Intergen
 
What's New in SQL Server 2017 since SQL Server 2008 R2
What's New in SQL Server 2017 since SQL Server 2008 R2What's New in SQL Server 2017 since SQL Server 2008 R2
What's New in SQL Server 2017 since SQL Server 2008 R2
Bill Ramos
 
Mapping Data Flows Training deck Q1 CY22
Mapping Data Flows Training deck Q1 CY22Mapping Data Flows Training deck Q1 CY22
Mapping Data Flows Training deck Q1 CY22
Mark Kromer
 
SQL Server 2008 New Features
SQL Server 2008 New FeaturesSQL Server 2008 New Features
SQL Server 2008 New Features
Dan English
 
Sql azure dec_2010 Lynn & Ike
Sql azure dec_2010 Lynn & IkeSql azure dec_2010 Lynn & Ike
Sql azure dec_2010 Lynn & Ike
Ike Ellis
 
Deep Dive into Azure Data Factory v2
Deep Dive into Azure Data Factory v2Deep Dive into Azure Data Factory v2
Deep Dive into Azure Data Factory v2
Eric Bragas
 
3 App Compat Win7
3 App Compat Win73 App Compat Win7
3 App Compat Win7
llangit
 
Sql server 2019 new features
Sql server 2019 new featuresSql server 2019 new features
Sql server 2019 new features
George Walters
 
Open Source für den geschäftskritischen Einsatz
Open Source für den geschäftskritischen EinsatzOpen Source für den geschäftskritischen Einsatz
Open Source für den geschäftskritischen Einsatz
MariaDB plc
 
Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platfor...
Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platfor...Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platfor...
Modernizing ETL with Azure Data Lake: Hyperscale, multi-format, multi-platfor...
Michael Rys
 
Hands-On with U-SQL and Azure Data Lake Analytics (ADLA)
Hands-On with U-SQL and Azure Data Lake Analytics (ADLA)Hands-On with U-SQL and Azure Data Lake Analytics (ADLA)
Hands-On with U-SQL and Azure Data Lake Analytics (ADLA)
Jason L Brugger
 
Ssis 2016 RC3
Ssis 2016 RC3Ssis 2016 RC3
Ssis 2016 RC3
MSDEVMTL
 
Organizational compliance and security SQL 2012-2019 by George Walters
Organizational compliance and security SQL 2012-2019 by George WaltersOrganizational compliance and security SQL 2012-2019 by George Walters
Organizational compliance and security SQL 2012-2019 by George Walters
George Walters
 
SQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best PracticesSQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best Practices
Denny Lee
 
Session 2: SQL Server 2012 with Christian Malbeuf
Session 2: SQL Server 2012 with Christian MalbeufSession 2: SQL Server 2012 with Christian Malbeuf
Session 2: SQL Server 2012 with Christian Malbeuf
CTE Solutions Inc.
 

Viewers also liked (6)

University Challenge
University ChallengeUniversity Challenge
University Challenge
ukdpe
 
Mike Ormond: Developing for Windows Phone 7
Mike Ormond: Developing for Windows Phone 7Mike Ormond: Developing for Windows Phone 7
Mike Ormond: Developing for Windows Phone 7
ukdpe
 
Enterprise Content Management in Microsoft SharePoint 2007
Enterprise Content Management in Microsoft SharePoint 2007Enterprise Content Management in Microsoft SharePoint 2007
Enterprise Content Management in Microsoft SharePoint 2007
ukdpe
 
MTaulty_DevWeek_Parallel
MTaulty_DevWeek_ParallelMTaulty_DevWeek_Parallel
MTaulty_DevWeek_Parallel
ukdpe
 
LINQ in Visual Studio 2008
LINQ in Visual Studio 2008LINQ in Visual Studio 2008
LINQ in Visual Studio 2008
ukdpe
 
Overview Of Parallel Development - Ericnel
Overview Of Parallel Development -  EricnelOverview Of Parallel Development -  Ericnel
Overview Of Parallel Development - Ericnel
ukdpe
 
University Challenge
University ChallengeUniversity Challenge
University Challenge
ukdpe
 
Mike Ormond: Developing for Windows Phone 7
Mike Ormond: Developing for Windows Phone 7Mike Ormond: Developing for Windows Phone 7
Mike Ormond: Developing for Windows Phone 7
ukdpe
 
Enterprise Content Management in Microsoft SharePoint 2007
Enterprise Content Management in Microsoft SharePoint 2007Enterprise Content Management in Microsoft SharePoint 2007
Enterprise Content Management in Microsoft SharePoint 2007
ukdpe
 
MTaulty_DevWeek_Parallel
MTaulty_DevWeek_ParallelMTaulty_DevWeek_Parallel
MTaulty_DevWeek_Parallel
ukdpe
 
LINQ in Visual Studio 2008
LINQ in Visual Studio 2008LINQ in Visual Studio 2008
LINQ in Visual Studio 2008
ukdpe
 
Overview Of Parallel Development - Ericnel
Overview Of Parallel Development -  EricnelOverview Of Parallel Development -  Ericnel
Overview Of Parallel Development - Ericnel
ukdpe
 
Ad

Similar to SQL Server 2008 for Developers (20)

SQL Server 2008 for .NET Developers
SQL Server 2008 for .NET DevelopersSQL Server 2008 for .NET Developers
SQL Server 2008 for .NET Developers
llangit
 
Tech Days09 Sqldev
Tech Days09 SqldevTech Days09 Sqldev
Tech Days09 Sqldev
llangit
 
SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developers
llangit
 
Reports with SQL Server Reporting Services
Reports with SQL Server Reporting ServicesReports with SQL Server Reporting Services
Reports with SQL Server Reporting Services
Peter Gfader
 
Windows Azure and a little SQL Data Services
Windows Azure and a little SQL Data ServicesWindows Azure and a little SQL Data Services
Windows Azure and a little SQL Data Services
ukdpe
 
Whats New Sql Server 2008 R2 Cw
Whats New Sql Server 2008 R2 CwWhats New Sql Server 2008 R2 Cw
Whats New Sql Server 2008 R2 Cw
Eduardo Castro
 
Roles y Responsabilidades en SQL Azure
Roles y Responsabilidades en SQL AzureRoles y Responsabilidades en SQL Azure
Roles y Responsabilidades en SQL Azure
Eduardo Castro
 
AnalysisServices
AnalysisServicesAnalysisServices
AnalysisServices
webuploader
 
Sql Summit Clr, Service Broker And Xml
Sql Summit   Clr, Service Broker And XmlSql Summit   Clr, Service Broker And Xml
Sql Summit Clr, Service Broker And Xml
David Truxall
 
Windows Azure for .NET Developers
Windows Azure for .NET DevelopersWindows Azure for .NET Developers
Windows Azure for .NET Developers
llangit
 
Mobile
MobileMobile
Mobile
firstmedit
 
Microsoft Database Options
Microsoft Database OptionsMicrosoft Database Options
Microsoft Database Options
David Chou
 
SQL SERVER 2008 R2 CTP
SQL SERVER 2008 R2 CTPSQL SERVER 2008 R2 CTP
SQL SERVER 2008 R2 CTP
Govind S Yadav
 
Introduction To Sql Services
Introduction To Sql ServicesIntroduction To Sql Services
Introduction To Sql Services
llangit
 
SQL Server 2019 ctp2.2
SQL Server 2019 ctp2.2SQL Server 2019 ctp2.2
SQL Server 2019 ctp2.2
Gianluca Hotz
 
SQL Azure the database in the cloud
SQL Azure the database in the cloud SQL Azure the database in the cloud
SQL Azure the database in the cloud
Eduardo Castro
 
Azure Data platform
Azure Data platformAzure Data platform
Azure Data platform
Mostafa
 
Higher Productivity With Ase
Higher Productivity With AseHigher Productivity With Ase
Higher Productivity With Ase
sparkwan
 
R2 roadshows
R2 roadshowsR2 roadshows
R2 roadshows
Mark Kromer
 
PASS Summit - SQL Server 2017 Deep Dive
PASS Summit - SQL Server 2017 Deep DivePASS Summit - SQL Server 2017 Deep Dive
PASS Summit - SQL Server 2017 Deep Dive
Travis Wright
 
SQL Server 2008 for .NET Developers
SQL Server 2008 for .NET DevelopersSQL Server 2008 for .NET Developers
SQL Server 2008 for .NET Developers
llangit
 
Tech Days09 Sqldev
Tech Days09 SqldevTech Days09 Sqldev
Tech Days09 Sqldev
llangit
 
SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developers
llangit
 
Reports with SQL Server Reporting Services
Reports with SQL Server Reporting ServicesReports with SQL Server Reporting Services
Reports with SQL Server Reporting Services
Peter Gfader
 
Windows Azure and a little SQL Data Services
Windows Azure and a little SQL Data ServicesWindows Azure and a little SQL Data Services
Windows Azure and a little SQL Data Services
ukdpe
 
Whats New Sql Server 2008 R2 Cw
Whats New Sql Server 2008 R2 CwWhats New Sql Server 2008 R2 Cw
Whats New Sql Server 2008 R2 Cw
Eduardo Castro
 
Roles y Responsabilidades en SQL Azure
Roles y Responsabilidades en SQL AzureRoles y Responsabilidades en SQL Azure
Roles y Responsabilidades en SQL Azure
Eduardo Castro
 
AnalysisServices
AnalysisServicesAnalysisServices
AnalysisServices
webuploader
 
Sql Summit Clr, Service Broker And Xml
Sql Summit   Clr, Service Broker And XmlSql Summit   Clr, Service Broker And Xml
Sql Summit Clr, Service Broker And Xml
David Truxall
 
Windows Azure for .NET Developers
Windows Azure for .NET DevelopersWindows Azure for .NET Developers
Windows Azure for .NET Developers
llangit
 
Microsoft Database Options
Microsoft Database OptionsMicrosoft Database Options
Microsoft Database Options
David Chou
 
SQL SERVER 2008 R2 CTP
SQL SERVER 2008 R2 CTPSQL SERVER 2008 R2 CTP
SQL SERVER 2008 R2 CTP
Govind S Yadav
 
Introduction To Sql Services
Introduction To Sql ServicesIntroduction To Sql Services
Introduction To Sql Services
llangit
 
SQL Server 2019 ctp2.2
SQL Server 2019 ctp2.2SQL Server 2019 ctp2.2
SQL Server 2019 ctp2.2
Gianluca Hotz
 
SQL Azure the database in the cloud
SQL Azure the database in the cloud SQL Azure the database in the cloud
SQL Azure the database in the cloud
Eduardo Castro
 
Azure Data platform
Azure Data platformAzure Data platform
Azure Data platform
Mostafa
 
Higher Productivity With Ase
Higher Productivity With AseHigher Productivity With Ase
Higher Productivity With Ase
sparkwan
 
PASS Summit - SQL Server 2017 Deep Dive
PASS Summit - SQL Server 2017 Deep DivePASS Summit - SQL Server 2017 Deep Dive
PASS Summit - SQL Server 2017 Deep Dive
Travis Wright
 
Ad

More from ukdpe (20)

Mike Ormond: Silverlight for Windows Phone 7 (UK TechDays)
Mike Ormond: Silverlight for Windows Phone 7 (UK TechDays)Mike Ormond: Silverlight for Windows Phone 7 (UK TechDays)
Mike Ormond: Silverlight for Windows Phone 7 (UK TechDays)
ukdpe
 
Windows Phone 7: How (Not) to Fail Marketplace Ingestion
Windows Phone 7: How (Not) to Fail Marketplace IngestionWindows Phone 7: How (Not) to Fail Marketplace Ingestion
Windows Phone 7: How (Not) to Fail Marketplace Ingestion
ukdpe
 
Mike Taulty OData (NxtGen User Group UK)
Mike Taulty OData (NxtGen User Group UK)Mike Taulty OData (NxtGen User Group UK)
Mike Taulty OData (NxtGen User Group UK)
ukdpe
 
Microsoft UK TechDays - jQuery and ASP.NET
Microsoft UK TechDays - jQuery and ASP.NETMicrosoft UK TechDays - jQuery and ASP.NET
Microsoft UK TechDays - jQuery and ASP.NET
ukdpe
 
Microsoft UK TechDays - Top 10 ASP.NET 4.0 Features
Microsoft UK TechDays - Top 10 ASP.NET 4.0 FeaturesMicrosoft UK TechDays - Top 10 ASP.NET 4.0 Features
Microsoft UK TechDays - Top 10 ASP.NET 4.0 Features
ukdpe
 
Microsoft UK TechDays - ASP.NET 4.0 Overview
Microsoft UK TechDays - ASP.NET 4.0 OverviewMicrosoft UK TechDays - ASP.NET 4.0 Overview
Microsoft UK TechDays - ASP.NET 4.0 Overview
ukdpe
 
Mike Taulty MIX10 Silverlight 4 Patterns Frameworks
Mike Taulty MIX10 Silverlight 4 Patterns FrameworksMike Taulty MIX10 Silverlight 4 Patterns Frameworks
Mike Taulty MIX10 Silverlight 4 Patterns Frameworks
ukdpe
 
Mike Taulty MIX10 Silverlight 4 Accelerated Fundamentals
Mike Taulty MIX10 Silverlight 4 Accelerated FundamentalsMike Taulty MIX10 Silverlight 4 Accelerated Fundamentals
Mike Taulty MIX10 Silverlight 4 Accelerated Fundamentals
ukdpe
 
Mike Taulty TechDays 2010 Silverlight and Windows Phone 7 CTP
Mike Taulty TechDays 2010 Silverlight and Windows Phone 7 CTPMike Taulty TechDays 2010 Silverlight and Windows Phone 7 CTP
Mike Taulty TechDays 2010 Silverlight and Windows Phone 7 CTP
ukdpe
 
Mike Taulty TechDays 2010 Silverlight 4 - What's New?
Mike Taulty TechDays 2010 Silverlight 4 - What's New?Mike Taulty TechDays 2010 Silverlight 4 - What's New?
Mike Taulty TechDays 2010 Silverlight 4 - What's New?
ukdpe
 
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
ukdpe
 
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
ukdpe
 
Mike Taulty DevDays 2010 Silverlight MEF
Mike Taulty DevDays 2010 Silverlight MEFMike Taulty DevDays 2010 Silverlight MEF
Mike Taulty DevDays 2010 Silverlight MEF
ukdpe
 
Mike Taulty DevDays 2010 Silverlight 4 Networking
Mike Taulty DevDays 2010 Silverlight 4 NetworkingMike Taulty DevDays 2010 Silverlight 4 Networking
Mike Taulty DevDays 2010 Silverlight 4 Networking
ukdpe
 
Mike Taulty MIX10 Silverlight Frameworks and Patterns
Mike Taulty MIX10 Silverlight Frameworks and PatternsMike Taulty MIX10 Silverlight Frameworks and Patterns
Mike Taulty MIX10 Silverlight Frameworks and Patterns
ukdpe
 
Explaining The Cloud
Explaining The CloudExplaining The Cloud
Explaining The Cloud
ukdpe
 
Microsoft In Education - Steve Beswick
Microsoft In Education - Steve BeswickMicrosoft In Education - Steve Beswick
Microsoft In Education - Steve Beswick
ukdpe
 
How Microsoft Secures its Online Services [WHITEPAPER]
How Microsoft Secures its Online Services [WHITEPAPER]How Microsoft Secures its Online Services [WHITEPAPER]
How Microsoft Secures its Online Services [WHITEPAPER]
ukdpe
 
Overview of Microsoft App-V 4.5
Overview of Microsoft App-V 4.5Overview of Microsoft App-V 4.5
Overview of Microsoft App-V 4.5
ukdpe
 
Optimising your site for search engines
Optimising your site for search enginesOptimising your site for search engines
Optimising your site for search engines
ukdpe
 
Mike Ormond: Silverlight for Windows Phone 7 (UK TechDays)
Mike Ormond: Silverlight for Windows Phone 7 (UK TechDays)Mike Ormond: Silverlight for Windows Phone 7 (UK TechDays)
Mike Ormond: Silverlight for Windows Phone 7 (UK TechDays)
ukdpe
 
Windows Phone 7: How (Not) to Fail Marketplace Ingestion
Windows Phone 7: How (Not) to Fail Marketplace IngestionWindows Phone 7: How (Not) to Fail Marketplace Ingestion
Windows Phone 7: How (Not) to Fail Marketplace Ingestion
ukdpe
 
Mike Taulty OData (NxtGen User Group UK)
Mike Taulty OData (NxtGen User Group UK)Mike Taulty OData (NxtGen User Group UK)
Mike Taulty OData (NxtGen User Group UK)
ukdpe
 
Microsoft UK TechDays - jQuery and ASP.NET
Microsoft UK TechDays - jQuery and ASP.NETMicrosoft UK TechDays - jQuery and ASP.NET
Microsoft UK TechDays - jQuery and ASP.NET
ukdpe
 
Microsoft UK TechDays - Top 10 ASP.NET 4.0 Features
Microsoft UK TechDays - Top 10 ASP.NET 4.0 FeaturesMicrosoft UK TechDays - Top 10 ASP.NET 4.0 Features
Microsoft UK TechDays - Top 10 ASP.NET 4.0 Features
ukdpe
 
Microsoft UK TechDays - ASP.NET 4.0 Overview
Microsoft UK TechDays - ASP.NET 4.0 OverviewMicrosoft UK TechDays - ASP.NET 4.0 Overview
Microsoft UK TechDays - ASP.NET 4.0 Overview
ukdpe
 
Mike Taulty MIX10 Silverlight 4 Patterns Frameworks
Mike Taulty MIX10 Silverlight 4 Patterns FrameworksMike Taulty MIX10 Silverlight 4 Patterns Frameworks
Mike Taulty MIX10 Silverlight 4 Patterns Frameworks
ukdpe
 
Mike Taulty MIX10 Silverlight 4 Accelerated Fundamentals
Mike Taulty MIX10 Silverlight 4 Accelerated FundamentalsMike Taulty MIX10 Silverlight 4 Accelerated Fundamentals
Mike Taulty MIX10 Silverlight 4 Accelerated Fundamentals
ukdpe
 
Mike Taulty TechDays 2010 Silverlight and Windows Phone 7 CTP
Mike Taulty TechDays 2010 Silverlight and Windows Phone 7 CTPMike Taulty TechDays 2010 Silverlight and Windows Phone 7 CTP
Mike Taulty TechDays 2010 Silverlight and Windows Phone 7 CTP
ukdpe
 
Mike Taulty TechDays 2010 Silverlight 4 - What's New?
Mike Taulty TechDays 2010 Silverlight 4 - What's New?Mike Taulty TechDays 2010 Silverlight 4 - What's New?
Mike Taulty TechDays 2010 Silverlight 4 - What's New?
ukdpe
 
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
ukdpe
 
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 1
ukdpe
 
Mike Taulty DevDays 2010 Silverlight MEF
Mike Taulty DevDays 2010 Silverlight MEFMike Taulty DevDays 2010 Silverlight MEF
Mike Taulty DevDays 2010 Silverlight MEF
ukdpe
 
Mike Taulty DevDays 2010 Silverlight 4 Networking
Mike Taulty DevDays 2010 Silverlight 4 NetworkingMike Taulty DevDays 2010 Silverlight 4 Networking
Mike Taulty DevDays 2010 Silverlight 4 Networking
ukdpe
 
Mike Taulty MIX10 Silverlight Frameworks and Patterns
Mike Taulty MIX10 Silverlight Frameworks and PatternsMike Taulty MIX10 Silverlight Frameworks and Patterns
Mike Taulty MIX10 Silverlight Frameworks and Patterns
ukdpe
 
Explaining The Cloud
Explaining The CloudExplaining The Cloud
Explaining The Cloud
ukdpe
 
Microsoft In Education - Steve Beswick
Microsoft In Education - Steve BeswickMicrosoft In Education - Steve Beswick
Microsoft In Education - Steve Beswick
ukdpe
 
How Microsoft Secures its Online Services [WHITEPAPER]
How Microsoft Secures its Online Services [WHITEPAPER]How Microsoft Secures its Online Services [WHITEPAPER]
How Microsoft Secures its Online Services [WHITEPAPER]
ukdpe
 
Overview of Microsoft App-V 4.5
Overview of Microsoft App-V 4.5Overview of Microsoft App-V 4.5
Overview of Microsoft App-V 4.5
ukdpe
 
Optimising your site for search engines
Optimising your site for search enginesOptimising your site for search engines
Optimising your site for search engines
ukdpe
 

SQL Server 2008 for Developers

  • 1. What’s New for Developers in SQL Server 2008 Mike Taulty, Mike Ormond Developer & Platform Group Microsoft Ltd [email_address] ( http://www.mtaulty.com ) [email_address] ( http://www.mikeo.co.uk )
  • 2. Agenda Relational++ New data types beyond the traditional RDBMS Data In, Data Out Information from Data Database Applications Core Capabilities & Tooling
  • 4. New Data Types FILESTREAM Extension to varbinary(max) Data is stored in the file system Access with file system API’s or relational API’s HIERARCHY ID Model the traditional employee/manager relationship New Date & Time data types DATE, TIME, DATETIMEOFFSET, DATETIME2 & functions to deal with them
  • 5. XML Data Type Enhancements Improved schema validation support Supports validation of Office 12 documents Allows for lax content Unions of lists Lists of unions XQuery support FWOR finally becomes FLWOR (the let clause) Use of variables in .modify() operations
  • 6. CLR Data Type Enhancements UDTs > 8K possible for CLR implementations Aggregates Multi-input aggregates now possible in CLR implementations Aggregates > 8K now possible in CLR implementations Sort order on CLR Table Valued Functions Today, SQL spools output from CLR TVF’s and then sorts them – often this is redundant
  • 8. Spatial Data Proliferation of geographical data GPS Systems Virtual Earth, Live Search Maps etc New opportunities for spatially aware apps Route planning Land assessment Territory analysis SQL Server 2008 Storage and retrieval of spatial data using standard SQL syntax
  • 9. Spatial Data Types Comprehensive Support Flat Earth (Planar) - geometry Round Earth (Geodetic) – geography CLR System Types Microsoft.SqlServer.Types .Geo[metry | graphy] Host of useful spatial methods / properties (OGC) Importing of WKT / WKB (OGC) and GML data High Performance Integrated into SQL 2008 Spatial Index support
  • 10. Spatial Data in SQL 2008
  • 11. Semi-Structured Additions Sparse columns Optimised storage for sparsely populated columns Wide Tables Support for hundreds of thousands of sparse columns Filtered Indexes Define indices over subsets of data in tables
  • 12. Semi-Structured Additions ProducID Description Category Price Current Colour Size Volume Fabric Fitment COSHH 1 Dulux Emulsion Paint 22.95 False Blue - 1.5 - - 8729 2 Roller Tools 3.95 False - L - - - - 3 Rug Home 79.50 False Brown - - Wool - - 4 Bulb Electrical 1.25 True Pearl - - - Screw - 5 Weedkiller Garden 7.99 True - - 1.0 - - 2776 6 Bamboo Garden 35.00 True Yellow - - - - - 7 2x4 Wood 2.95 True - - - - - - 8 ... ... ... ... ... ... ... ... ... ... ProducID Description Category Price Current Colour Size Volume Fabric Fitment COSHH 1 Dulux Emulsion Paint 22.95 False Blue - 1.5 - - 8729 2 Roller Tools 3.95 False - L - - - - 3 Rug Home 79.50 False Brown - - Wool - - 4 Bulb Electrical 1.25 True Pearl - - - Screw - 5 Weedkiller Garden 7.99 True - - 1.0 - - 2776 6 Bamboo Garden 35.00 True Yellow - - - - - 7 2x4 Wood 2.95 True - - - - - - 8 ... ... ... ... ... ... ... ... ... ... ‘ Fixed’ Columns Sparse Columns
  • 14. SQL Server Integration Services New Script Environment for Script Tasks & Components VSTA replaces VSA (deprecated) C# language programmability More of the familiar VS environment ADO.NET Source and Destination OLEDB source/destinations still there  Data Profiling Task & Viewer
  • 15. SQL Server Integration Services Data Flow performance In 2005, an execution tree (even with branches) is executed on a single thread In 2008, this is handled differently (i.e. better ) Lookup Transformation Share cached lookup across packages More granular control over cache use for matched/non-matched data Additional changes elsewhere MERGE, Change Data Capture, Data Types, etc.
  • 17. Tracking Changes Change Tracking Synchronous - when the DML is committed Detect net changes to data Tables/Rows effectively have a version # Good for building one- and two- way sync solutions Change Data Capture Asynchronous - reads transaction log Detect net and incremental changes to data Good for building one- way sync solutions
  • 18. Change Tracking & Data Capture
  • 19. MERGE DML statement combining multiple operations into one Merge source target match so UPDATE no match so INSERT no source match so DELETE
  • 21. ADO.NET Synchronisation Services Synchronisation Framework Online/Offline Applications 2-tier, N-tier architectures Set of components Sync Classes Client Database SQL Server Compact Edition Server Database Any ADO.NET store “ Service” Based Approach
  • 22. ADO.NET Synchronisation Services Server Sync Provider Sync Agent Sync Adapters Client Sync Provider Sync Table Sync Group Client DB Server DB Transport Proxy Service
  • 27. Reach All your Users with Scalable BI platform Deliver insights throughout your organization Deliver reports of any size at enterprise scale Scale out through read-only Analysis Services storage Enhance analytical capabilities with more complex computations and aggregations Deploy and manage your BI infrastructure Streamline development of the analysis infrastructure with new cube design tools Optimize cube design with real time best practice alerts Backup cubes with enhanced scalability Pervasive Insight
  • 29. Client Library Support for Features Visual Studio 2008 ships with; .NET Framework V3.5 Support for most new SQL 2008 data types Support for table valued parameters Microsoft Synchronization Services SQL Server 2008 ships with; Client library support for some new data types; Microsoft.SqlServer.Types.dll (SqlGeometry, SqlHierarchyId) ADO.NET V3.0 Entity Framework, Data Services ship separately
  • 30. Table Valued Parameters Stored procedures and functions can now take a table as a parameter Passing “arrays” of data to the server in one go Often done in the past with XML, strings Mechanism Declare table type server side Define parameter to be of table type New ADO.NET parameter type SqlDbType.Structured Pass DataTable, IEnumerable<SqlDataRecord>, DbDataReader into ADO.NET client side
  • 32. ADO.NET Entity Framework .NET Entity Provider (Entity SQL) Command Connection Reader Adapter V3.0 Store .NET Data Provider V2.0 Command Connection Reader Adapter V3.0 Conceptual Model Entity Entity relationship Store Model (SSDL) ER Model (CSDL) Mapping (MSL) V3.0 Programming Model Object Relational Mapping LINQ
  • 33. ADO.NET Entity Framework Schema independence Store independence Higher level constructs Relationships Inheritance Status At Beta 2 Today Tooling at CTP 1 Store .NET Provider V2.0 Conceptual Model .NET Provider (EntitySQL) ORM & LINQ V3.0 Mapping
  • 35. ADO.NET Data Services (“Astoria”) Flexible data services for the web URI addressable resources (RESTful) Simple data formats (XML / JSON) Modelling of data with EDM CRUD operations support HTML + Javascript Data (XML, JSON) DLL + XAML Data (XML, JSON) Data (XML, JSON) Mashup UI Data Feeds
  • 36. Astoria URI Format Data Service URL (special WCF service) Entity Set Name (eg Customers) Optional Predicate Navigation Property (eg Orders) Optional Predicate Querystring Options (eg orderby) http://localhost/service.svc/Customers[ALFKI]/Orders?$orderby=City
  • 39. Resource Governor Dynamically monitors & controls access to server resources request Resource Pool 1 Resource Pool 2 Workload Group 1 Workload Group 2 MIN, MAX CPU MIN, MAX RAM MIN, MAX CPU MIN, MAX RAM Workload Group 3 Workload Group 1 Priority Max Request Memory Max Request CPU Time Max DOP Max Requests classify()
  • 41. Guiding Procedure Execution More control & visibility of stored procedure execution to aid predictable execution sp_create_plan_guide accepts XML Showplan output sp_create_plan_guide_from_cache sys.fn_validate_plan_guide Plan guides visibile in Management Studio Monitoring Events – Plan Guide (Un)Successful Counters – (Mis)Guided Plan Executions/Sec on SQL Statistics object
  • 43. Performance Studio Unified framework for capturing “metrics” from SQL Server schedule Interfaces Mgmt Studio S’procs API Dashboard UI post SQL 2008 Data Collector Collection Set Collection Set Collection Set Collection Item Collection Item Collection Item Counter, SQL trace or SQL query
  • 45. Extended Events (XEvent) High performance eventing system for SQL Integrates with Event Tracing for Windows (ETW) Possibility of end-to-end tracing DDL for managing event sessions on a server “ When” to log Where to send it Data to log Filters
  • 47. Auditing (not in current CTP) Written to files or event logs Server level auditing Login, Logoff, Create DB, etc. (many) Database level auditing Changes to Users, Roles, Schema, etc. (many) Granular level auditing CRUD + EXECUTE on tables, views, procedures, etc. AUDIT UPDATE ON Employee [BY User1]
  • 48. Platform Enhancements Transparent Data Encryption (TDE) Encrypt my data on disk transparent to applications Database Compression (not in CTP5) ROW / PAGE Compression Integrated Full Text Search (not in CTP5) Easier to deploy / manage and better performance Declarative Management Framework Establish policies for monitoring or compliance
  • 50. MSDN in the UK Visit http://msdn.co.uk Newsletter Events Screencasts Blogs
  • 51.