SQL Server 2014 New Features (Sql Server 2014 Yenilikleri)


Published on

SQL Server 2014 New Features

Detaylı bilgi için: https://www.btakademi.com

Published in: Education, Technology
  • http://dbmanagement.info/Tutorials/SQL_Server.htm "SQL Server programming Video Training Tutorial DVDs (3 DVDs) Sale Price 29.97 More than 12.4 GB of Video files"
    Are you sure you want to  Yes  No
    Your message goes here
  • http://dbmanagement.info/Tutorials/SQL_Server.htm
    Are you sure you want to  Yes  No
    Your message goes here
  • http://www.dbmanagement.info/Tutorials/SQL.htm
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • xxxxx
  • Talking points:The code page of a (var)char value is determined by the collation associated with the value. For example, the collation SQL_Latin1_General_CP1_CI_AS has the associated code page 1252.-- all supported collations for (var)char columns in memory-optimized tables select * from sys.fn_helpcollations() where collationproperty(name, 'codepage') = 1252;Indexes can only be created on string columns if they use a BIN2 collation. The LastName variable uses BIN2 collation. FirstName uses the database default, which is CI_AS (case-insensitive, accent-sensitive).select * from sys.fn_helpcollations() where name like '%BIN2'
  • Talking points:This diagram shows what happens when a table is createdTables are compiled for efficient access to table data – knowledge about indexes, columns, datatypes, etc, is baked into the DLLDLL is loaded immediately after compilationDLL is recompiled at server startup, so no risk of anyone tampering with the DLLs while the server is down
  • SQL Server 2014 New Features (Sql Server 2014 Yenilikleri)

    1. 1. İsmail Adar
    2. 2. About.Me() • Veritabanı Takım Lideri / Doğan Online • Eğitimen/Danışmanı / Btakademi • Kitap Yazarı • Microsoft Certified Trainer ismailadar@hotmail.com http://www.ismailadar.com İsmail Adar @ismailadars
    3. 3. Content.GetAgenda() • Buffer Pool Extension • Resource Governor for I/O • Delayed Durability • DMV- sys.dm_exec_query_profiles • Select into Parallel
    4. 4. Buffer Pool Extension Requirement • Increasing memory available to SQL Server is the easiest way of improving OLTP performance. • However, adding more memory might be expensive or even unsupported, especially on the old machines with limitations on DIMM sizes and/or number of supported memory slots. • Adding new storage devices to the same machines is usually supported.
    5. 5. Buffer Pool Extension • Buffer pool is – The most widely used part of the SQL Server memory management – The biggest memory block, most benefits from the memory increases – The most critical memory pool for reducing the IO pressure for OLTP • SQL Server Buffer Pool Extension can use nonvolatile storage devices for increasing amount of memory available for buffer pool consumers. This allows usage of SSD as an intermediate buffer pool pages thus getting price advantage
    6. 6. How Buffer Pool Extension works Buffer Pool Clean Page Dirty Page SSD ɸ Evict Clean Page DB
    7. 7. Buffer Pool Extension Configuration ALTER SERVER CONFIGURATION SET BUFFER POOL EXTENSION { ON ( FILENAME = 'os_file_path_and_name' , SIZE = <size> [ KB | MB | GB ] ) | OFF } Privilege required: ALTER SERVER STATE
    8. 8. Buffer Pool Extension Buffer Pool Extension for SSD Disks Only Clean Pages Esay Configuration New DMV SELECT * FROM sys.dm_os_buffer_pool_extension_configuration SELECT * FROM sys.dm_os_buffer_descriptors
    9. 9. DEMO Buffer Pool Extension
    10. 10. Why Govern IO? • Providing IO level isolation between multiple workloads is a single biggest pain point for customers (especially hosters) using SQL Server Resource Governor to implement a private cloud or a Database as a Service • IO level performance predictability in combination with CPU and Memory governance (which are shipped already) makes a comprehensive Resource Governance solution for mission critical applications running multiple workloads on a single SQL instance (typically on high-end scale up machines or large VMs)
    11. 11. Configure Resource Governor for I/O Ability to set/get/alter Maximum and minimum IOPS per volume to Resource Governor Resource Pools CREATE/ALTER RESOURCE POOL pool_name [ WITH ( [ MIN_CPU_PERCENT = value ] [ [ , ] MAX_CPU_PERCENT = value ] [ [ , ] CAP_CPU_PERCENT = value ] [ [ , ] AFFINITY {SCHEDULER = AUTO | (Scheduler_range_spec) | NUMANODE = (NUMA_node_range_spec)} ] [ [ , ] MIN_MEMORY_PERCENT = value ] [ [ , ] MAX_MEMORY_PERCENT = value ] [ [ , ] MIN_IOPS_PER_VOLUME = value ] [ [ , ] MAX_IOPS_PER_VOLUME = value ]) ] [;]
    12. 12. Delayed Durability ACID Rules Log Buffer sp_flush_log is executed The in-memory transaction log buffer fills up. A fully durable transaction in the same database makes a change in the database and commits ALTER DATABASE … SET DELAYED_DURABILITY = { DISABLED | ALLOWED | FORCED }
    13. 13. DEMO Delayed Durability
    14. 14. DMV- sys.dm_exec_query_profiles
    15. 15. DEMO DMV- sys.dm_exec_query_profiles
    16. 16. DEMO Select into Parallel
    17. 17. Resources • Overview of all In-Memory OLTP posts on the SQL Server blog – http://blogs.technet.com/b/dataplatforminsider/archive/2013/10/15/the-411-on-the-microsoft-sql-server-2014-in-memory-oltp-blog-series.aspx • SQL 2014 CTP2 – http://technet.microsoft.com/en-US/evalcenter/dn205290?WT.mc_id=Blog_SQL_InMem_CTP2 • Getting started with In-Memory OLTP – http://blogs.technet.com/b/dataplatforminsider/archive/2013/06/26/getting-started-with-sql-server-2014-in-memory-oltp.aspx • In-Memory OLTP Sample, based on AdventureWorks – https://msftdbprodsamples.codeplex.com/releases/view/114491?WT.mc_id=Blog_SQL_InMem_CTP2 • Analysis and Migration tools – – http://technet.microsoft.com/en-us/library/dn284308(v=sql.120).aspx – • http://technet.microsoft.com/en-us/library/dn205133(v=sql.120).aspx http://technet.microsoft.com/en-us/library/dn358355(v=sql.120).aspx Transaction isolation with In-Memory OLTP – Choosing isolation level: http://msdn.microsoft.com/en-us/library/dn133187(v=sql.120).aspx – Implement retry logic: http://msdn.microsoft.com/en-us/library/dn169141(v=sql.120).aspx • Books Online documentation for In-Memory OLTP – http://technet.microsoft.com/en-us/library/dn133186(v=sql.120).aspx • Limitations and workarounds – http://msdn.microsoft.com/en-us/library/dn247639(v=sql.120).aspx
    18. 18. ©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics 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.