What’s New In Denali - TSQL David Ballantyne. Who am I Kent.Net/SqlServer.

Slides:



Advertisements
Similar presentations
Yukon – What is New Rajesh Gala. Yukon – What is new.NET Framework Programming Data Types Exception Handling Batches Databases Database Engine Administration.
Advertisements

Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide Standardizing Application.
Microsoft ® Official Course Interacting with the Search Service Microsoft SharePoint 2013 SharePoint Practice.
What’s New in “Denali” Engine and Tools Aaron Bertrand SQL Sentry, Inc.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Microsoft Office System UK Developers Conference Radisson Edwardian, Heathrow 29 th & 30 th June 2005.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
SQL Basics. SQL SQL (Structured Query Language) is a special-purpose programming language designed from managing data in relational database management.
Searching Binary Data in SQL Server 2012 Steve Jones SQLServerCentral.com.
A Comedy of Errors Handling Errors in T-SQL Code Andrew Whettam.
Introduction to Databases Chapter 6: Understanding the SQL Language.
Version 1.0. MCAD MCSD MCPD Enterprise SQL MCTS MCT Software/Web Development Consultant Cryptography/Digital Signature Consultant SQL Server 2005/2008R2/2012.
Sofia, Bulgaria | 9-10 October TSQL Enhancements in SQL Server 2005 Stephen Forte CTO, Corzen Inc Microsoft Regional Director NY/NJ (USA) Stephen Forte.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:
Online Autonomous Citation Management for CiteSeer CSE598B Course Project By Huajing Li.
BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.
DBSQL 14-1 Copyright © Genetic Computer School 2009 Chapter 14 Microsoft SQL Server.
Stored Procedures, Transactions, and Error-Handling
TSQL Improvements & Data Types SQL Server 2008 TSQL Improvements & Data Types Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP,
1 Definition of a subquery Nested subqueries Correlated subqueries The ISNULL function Derived tables The EXISTS operator Mixing data types: CAST & CONVERT.
Data Management Console Synonym Editor
CERN - IT Department CH-1211 Genève 23 Switzerland t DB Development Tools Benthic SQL Developer Application Express WLCG Service Reliability.
VB and C# Programming Basics. Overview Basic operations String processing Date processing Control structures Functions and subroutines.
Upgrading to SQL Server 2000 Kashef Mughal. Multiple Versions SQL Server 2000 supports multiple versions of SQL Server on the same machine It does that.
Database Programming Sections 11 & 12 – Creating, and Managing Views, Sequences, Indexes, and Synonymns.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Nikolay Kostov Telerik Corporation
T-SQL: Simple Changes That Go a Long Way DAVE ingeniousSQL.com linkedin.com/in/ingenioussql.
1. When things go wrong: how to find SQL error Sveta Smirnova Principle Technical Support Engineer, Oracle.
More Windowing Functions KEVIN MCCARTY. What are Windowing Functions Again? Introduced in SQL Server 2005 (SQL 2003 Standard) Used to provide operations.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
06 | Modifying Data in SQL Server Brian Alderman | MCT, CEO / Founder of MicroTechPoint Tobias Ternstrom | Microsoft SQL Server Program Manager.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
Using SQL Connecting, Retrieving Data, Executing SQL Commands, … Svetlin Nakov Technical Trainer Software University
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 (Part II) INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
Session 1 Module 1: Introduction to Data Integrity
05 | SET Operators, Windows Functions, and Grouping Brian Alderman | MCT, CEO / Founder of MicroTechPoint Tobias Ternstrom | Microsoft SQL Server Program.
Background Lots of Demos(That’s it.)
Confidencial - TRACASA Automatize test [e- Reporting]
TSQL Worst Practices Jacob Sebastian, SQL Server MVP
14 New T-SQL Functions By Sam Nasr, MCAD, MCT, MCTS NIS August 18, 2012.
14 New T-SQL Functions By Sam Nasr, MCAD, MCTS. MVP Nasr Information Systems February 8, 2014.
In this session, you will learn to: Create and manage views Implement a full-text search Implement batches Objectives.
Data Analysis with SQL Window Functions Adam McDonald IT Architect / Senior SQL Developer Smith Travel
SQL Query Getting to the data ……..
Relational Database Design
T-SQL: Simple Changes That Go a Long Way
T-SQL: Simple Changes That Go a Long Way
Database Systems: Design, Implementation, and Management Tenth Edition
Data Analysis with SQL Window Functions
Using Window Ranking, Offset, and Aggregate Functions
Microsoft SQL Server Managing Database Applications
14 T-SQL Functions You May Not Know
Using SQL to Prepare Data for Analysis
Search Techniques and Advanced tools for Researchers
T-SQL Window Function Deep Dive part 1
Awesome new T-SQL candy in SQL Server 2012
Introduction to Window Functions
Data Analysis with SQL Window Functions
Introduction to T-sql Window functionS
14 T-SQL Functions You May Not Know
Contents Preface I Introduction Lesson Objectives I-2
Chapter 8 Advanced SQL.
Database Systems: Design, Implementation, and Management Tenth Edition
Build on-the-fly reporting with Dynamic SQL
Introduction to SQL Server and the Structure Query Language
T-SQL: Simple Changes That Go a Long Way
Presentation transcript:

What’s New In Denali - TSQL David Ballantyne

Who am I Kent.Net/SqlServer User Group Founder o Next meeting 3 rd October for SqlRelay o #KentNetSqlUserGroup

Overview Deprecation o What have we lost ? o What is going to break? CTP 1 o Sequencing o Paging o Throw CTP 3 o OVER Clause Enhancements – Windowing o Analytic functions (LAG, LEAD, FIRST_VALUE and LAST_VALUE) o Formatting / Parsing functions

Deprecation ? “deprecation is a status applied to software features to indicate that they should be avoided, typically because they have been superseded” Removed from next version Removed from a future version BOL Reference o “SQL Server Database Engine Backward Compatibility” o

Whats going to break ? *= and =* Removed XML Endpoints (SOAP) Removed New keywords o NEXT o WITHIN FASTFIRSTROW Removed

Compatibility Issues Soundex changes o Lloyd and Scott o Any stored value can be wrong Row count message for failed DML statements o Sent to client side o Used to be -1 incorrectly, now will be Zero

For future Next Release o Result sets from triggers o SET ROWCOUNT with DML Unspecified o Column alias with = and quotes, ' string_alias' = expression o Not ending TSQL statements with ; o SQL Profiler - Use extended events o SET ANSI options ( defined as on ) o SET FMTONLY ON – Replaced with metadata discovery

On with the Code Demo Demo…….

Metadata discovery Replacement for “SET FORMATONLY ON” Discovery is Limited to first result set EXEC WITH RESULT SETS o Overrides the result set definitions from a procedure o Column Name o Data Type o Can define multi result sets Undeclared parameters

Sequences Database wide Identity Developer Can Define o Min Value o Max Value o Starting Value o Cyclable / Non Cyclable o Incrementing value Not transaction integral o Like Identity, can leave gaps

Paging Extension to ORDER BY clause o OFFSET X ROWS o FETCH NEXT Y ROWS ONLY FETCH { FIRST | NEXT } { integer_constant | fetch_row_count_expression } { ROW | ROWS } ONLY o FIRST and NEXT are synonyms and are provided for ANSI compatibility. o ROW and ROWS are synonyms and are provided for ANSI compatibility.

Throw Used to : o Raise an error o Rethrow an error from TRY CATCH THROW,, o Arbitrary ErroNumber and State, no meaningi o ErrorNumber must be >= 50,000 Honors XACT_ABORT Lost ‘printf’ style message formatting

OVER Clause True sliding window o Aggregate relative to current row o Partition by is a fixed window Window defined by o Current Row o Preceding X Rows o Following X Rows Aggregations can be by o Range o Rows

Analytics LAG / LEAD o Get a value from X rows ahead or behind current row FIRST_VALUE / LAST VALUE o Get a value from the First or Last Row in the partition CUME_DIST o Cumulative distribution,relative position of a row within a partition PERCENT_RANK o Calculates the relative rank of the row, from 0 to 1 PERCENT_DISC o Returns a value at the specified percentile in the result set PERCENTILE_CONT

Formatting / Parsing FORMAT o Return a formatted string PARSE o Convert ‘Culture’ senstive values (DateTime / Money) TRY_PARSE o Like PARSE but returns NULL on error TRY_CONVERT o Like CONVERT but returns NULL on error DATETIMEFROMPARTS o Assemble a date/time type from constituent values CONCAT o String concatentation

Logical Functions CHOOSE o CHOOSE(I,v1,v2….) o Using an index from 1 IIF o Inline IF o IIF(Expression,WhenTrue,WhenFalse)

Anything else ? FileTables o Links File system folders and SqlServer tables Full text search enhancements o Search documents for properties (Title / Author) o Customizable NEAR, number of terms between search terms Semantic search o Extract key phrases to match similar meaning documents