Top Banner
BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features
40

BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Dec 30, 2015

Download

Documents

Colin Fisher
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

BARBARIN DAVIDSQL Server Senior ConsultantPragmantic

SQL Server Denali :New development features

Page 2: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

David BARBARIN [email protected]

SQL Server Senior Consultant at Pragmantic SA Collaborative solutions Business solutions Data Management and Business Intelligence

Page 3: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Unstructured data and FILETABLE

Page 4: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

The FileTable feature builds on top of the SQL Server FILESTREAM technology

Represent a hierarchy of folders and file storage

Non transactional access

Can be used by Windows applications without changes

FILETABLE

Page 5: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

A row in a FileTable contains :

A FILESTREAM column for stream data and a file_id (GUID) identifier. (NULL if a directory is concerned)

Both path_locator and parent_path_locator columns

10 file attributes such as created date and modified date that are useful with file I/O APIs

A type column that supports full-text search and semantic search over files and documents.

A FileTable enforces certain system-defined constraints and triggers to maintain file namespace semantics.

When the database is configured for non-transactional access, directory and files can be access by the filestream network share name

FILETABLE

Page 6: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

FileTable

demo…

Page 7: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

FullText search and semantic search

Page 8: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Semantic search builds upon the existing full-text search feature in SQL Server but enables new scenarios that extend beyond syntactical keyword searches

Full-text search lets you query the words in a document

Semantic search lets you query the meaning of the document

Semantic search

Page 9: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Before you can use Semantic Search, you have to install, attach, and register the Semantic database. This database contains the statistical language models required by semantic search

Don’t forget to install the Latest Filters to allow indexing the concerned documents

Semantic search

Page 10: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Property Search is possible in the documents. The result depends directly on the I-filters.

Customizable NEAR (CONTAINS(column_name, 'NEAR((John, Smith),2)') )

Update of all word breakers and stemmers used by Full-Text Search except to Korean language

FullText search

Page 11: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Meta Data Discovery

Page 12: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

SET FMT ONLY will be replaced by

sys.sp_describe_first_result_setsys.dm_exec_describe_first_result_setsys.dm_exec_describe_first_result_set_for_object

Meta Data Discovery

Page 13: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Metada Discovery

demo…

Page 14: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Ad-hoc Query Paging

Page 15: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Paging still exists in SQL Server by using different methods

Implementation of paging like “MySQL” simplifies the search of a range of values

ORDER BY clause has been enhanced with OFFSET and FETCH NEXT … ROWS ONLY options

Ad-hoc Query Paging

Page 16: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

ORDER BY, OFFSET and FETCH

demo…

Page 17: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Execute statement enhanced

Page 18: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

The EXECUTE statement can now specify the metadata returned from the statement by using the WITH RESULT SETS argument

Allow the encapsulation of a stored procedure.

Can be a contract between a stored procedure and the Direct Access Layer of an application

Change in the stored procedure doesn’t not imply change on the DAL

Select data doesn’t require anymore a temp table

Conversion with SSIS source and destination is simplier

Execute statement

Page 19: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Execute statement

demo…

Page 20: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Sequence objects

Page 21: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Sequences are now possible with SQL Server 2012.

A Sequence object is a user-defined schema-bound object. It operates similar to an identity column, but sequence numbers are not restricted to use in a single table

The last-used value is stored in memory

CREATE SEQUENCE and NEXT VALUE FOR

Sequences

Page 22: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Sequences

demo…

Page 23: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

THROW statement

Page 24: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Like Csharp or other language THROW raises an exception and transfers execution to a CATCH block of a TRY…CATCH construct

THROW does not need a predefined message in sys.messages to work unlike RAISERROR

It's not possible to redefine the severity by THROW (always 16) unlike RAISERROR

Throw statement

Page 25: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Throw statement

demo…

Page 26: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

T-SQL enhancements

Page 27: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Conversion functions

PARSETRY_PARSETRY_CONVERT

T-SQL enhancements

Page 28: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Date and time functions

DATEFROMPARTSDATETIME2FROMPARTSDATETIMEFROMPARTSDATETIMEOFFSETFROMPARTSSMALLDATETIMEFROMPARTSTIMEFROMPARTSEOMONTH

T-SQL enhancements

Page 29: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Logical functions

CHOOSEIIF

T-SQL enhancements

Page 30: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

String functions

CONCATFORMAT

T-SQL enhancements

Page 31: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Logarithm computing :

SQL Server supported only two functions that compute logarithms: LOG (for natural logarithm) and LOG10 (for logarithm with a base of 10).

LOG function is modified with a second optional option : base that allows to compute a LOG with an another base

SELECT LOG(256, 2) equivalent to SELECT LOG(256) / LOG(2);

T-SQL enhancements

Page 32: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

New Analytic Functions are added

CUM_DIST()PERCENTILE_CONT() PERCENTILE_DISC()PERCENTILE_RANK()FIRST_VALUE()LAST_VALUE()LEAD()LAG()

T-SQL enhancements

Page 33: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

T-SQL enhancements

demo…

Page 34: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

UTF-16 Supplementary Characters (SC) Collations

SC collations can improve searching and sorting by functions that use the Unicode types nchar and nvarchar

UTF16 Support Collations

Page 35: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

New methods for geometry and geography data types that work with circular arc segments

New static aggregate methods for geometry data type and geography data type

Spatial types

Page 36: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

SQL Server Developer Tools

Page 37: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Juneau provides a unified set of tools that combines :

the projects found in SQL Server Business Intelligence Design Studio - including projects of Integration Services, Analysis and Reporting

the project database SQL Server.

SSDT (Juneau Project)

Page 38: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

SQL Server Developer Tools

demo…

Page 39: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

Please help us make TechDays even better by Evaluating this Session. Thank you!

Give us your feedback!

Page 40: BARBARIN DAVID SQL Server Senior Consultant Pragmantic SQL Server Denali : New development features.

© 2011 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.