Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Diving into sql server 2016

489 views

Published on

New features in SQL Server 2016 (CTP3)
From Developer to Developer

Published in: Software
  • Be the first to comment

  • Be the first to like this

Diving into sql server 2016

  1. 1. Diving into SQL Server 2016 Mohamed Zaatar, M.Sc. Readify Developer @mzaatar
  2. 2. Page / Copyright ©2014 by Readify Limited2
  3. 3. Page / Copyright ©2014 by Readify Limited3
  4. 4. Page TO-DO List › Into Azure › DB Stretching › SQL Server data files in Azure › SQL Server Engine › JSON Support › Query Store › In-Memory Computing › In-Memory OLTP - Memory-Optimized Tables › In-Memory Columnstore Indexes › Security › Row-level security › Dynamic data masking / Copyright ©201 by Readify Limited4
  5. 5. Page TO-DO List › Into Azure › DB Stretching › SQL Server data files in Azure › SQL Server Engine › JSON Support › Query Store › In-Memory Computing › In-Memory OLTP - Memory-Optimized Tables › In-Memory Columnstore Indexes › Security › Row-level security › Dynamic data masking / Copyright ©201 by Readify Limited5
  6. 6. Page Stretch Database / Copyright ©2014 by Readify Limited6
  7. 7. Page Database Stretching / Copyright ©2014 by Readify Limited7 › Why? Transactional data/save money › Not same as Linked Server › Microsoft charges you when query data not when move it AzureLocal DB
  8. 8. Page SQL Server data files in Azure › Save mdf /ldf files in Azure Blob storage › Why? › Backups › High Availability › Security / Copyright ©2014 by Readify Limited8 Azure SQL Server (on premises) DB 1 DB 2 DB 3 MD F LDF Azure Blob Storage
  9. 9. Page TO-DO List › Into Azure › DB Stretching › SQL Server data files in Azure › SQL Server Engine › JSON Support › Query Store › In-Memory Computing › In-Memory OLTP - Memory-Optimized Tables › In-Memory Columnstore Indexes › Security › Row-level security › Dynamic data masking / Copyright ©201 by Readify Limited9
  10. 10. Page / Copyright ©2014 by Readify Limited10
  11. 11. Page JSON support › Native support (like xml) › What to do ? › Export/export data from string to JSON › Format strings (varchar) as JSON › Query › Validate string against JSON standards / Copyright ©2014 by Readify Limited11
  12. 12. Page / Copyright ©2014 by Readify Limited12
  13. 13. Page Query store › New in 2016 and SQL Azure v12 › Bunch of tables: › sys.query_store_plan , sys.query_store_query , sys.query_store_query_text › Why? › Find and fix › How many time execute a query › Top n queries › Audit the history of queries / Copyright ©2014 by Readify Limited13
  14. 14. Page TO-DO List › Into Azure › DB Stretching › SQL Server data files in Azure › SQL Server Engine › JSON Support › Query Store › In-Memory Computing › In-Memory OLTP - Memory-Optimized Tables › In-Memory Columnstore Indexes › Security › Row-level security › Dynamic data masking / Copyright ©201 by Readify Limited14
  15. 15. Page In-memory OLTP › i.e. Memory-optimized tables › ACID? YES ! › Data in memory, saved on commits/check points › Data consistency? Using row versioning › Durable/nondurable data? Both are available › How to access data? T-SQL and Native-complied table/sp / Copyright ©2014 by Readify Limited15
  16. 16. Page In-memory ColumnStore indexes / Copyright ©2014 by Readify Limited16
  17. 17. Page In-memory ColumnStore indexes / Copyright ©2014 by Readify Limited17 ID Name Date Amount Name DateID Amount RowStore ColumnStor e
  18. 18. Page In-memory ColumnStore indexes › Columnstore Index (memory-optimized) › What is new? Clustered Index › Massive better performance ! / Copyright ©2014 by Readify Limited18
  19. 19. Page TO-DO List › Into Azure › DB Stretching › SQL Server data files in Azure › SQL Server Engine › JSON Support › Query Store › In-Memory Computing › In-Memory OLTP - Memory-Optimized Tables › In-Memory Columnstore Indexes › Security › Row-level security › Dynamic data masking / Copyright ©201 by Readify Limited19
  20. 20. Page Row-level Security – aka RLS › 2014 – enhancement in 2016 › Why? Multi-tenants DB / Copyright ©2014 by Readify Limited20 Application Server Clients Database Solution 1 Solution 2
  21. 21. Page Mohamed Zaatar XXXX-XXXX-XXXX- 6543 xxx Dynamic data masking › Customer service verifying credit cards › By a simple column attribute / Copyright ©2014 by Readify Limited21 Applicatio n Server Databas e Mohamed Zaatar 1234-6123-8787- 6543 123 Matt Davies 7652-2372-2746- 2815 789 Database
  22. 22. Page / Copyright ©2014 by Readify Limited22 Demos ? https://github.com/mzaatar/DBScripts/
  23. 23. Page Resources › https://msdn.microsoft.com/en-us/library/dn935011.aspx › http://sqlwithmanoj.com/tag/stretch-database/ › https://msdn.microsoft.com/en-US/library/dn466438.aspx › https://msdn.microsoft.com/en-au/library/dn934994.aspx › http://blog.sqlauthority.com/2011/10/29/sql-server-fundamentals-of-columnstore-index/ › http://www.nikoport.com/2015/09/02/columnstore-indexes-part-64-t-sql-improvements-in-sql- server-2016/ › https://msdn.microsoft.com/en-us/library/dn133165.aspx › https://azure.microsoft.com/en-us/blog/query-store-a-flight-data-recorder-for-your-database/ › https://msdn.microsoft.com/en-us/library/dn765131.aspx › https://msdn.microsoft.com/en-us/library/mt163865.aspx / Copyright ©2014 by Readify Limited23
  24. 24. Thanks

×