SlideShare a Scribd company logo
28th
SQL Night
WEBINAR
Athens May14,2016
StretchDB
in SQL Server 2016
PresenterInfo
1982 I started working with computers
1988 I started my professional career in computers
industry.
1996 I started working with SQL Server 6.0
1998 I earned my first certification at Microsoft as
Microsoft Certified Solution Developer (3rd in
Greece)
I started my career as Microsoft Certified Trainer
(MCT) with more than 25.000 hours of training until
now!
2010 I became for first time Microsoft MVP on SQL
Server
I created the SQL School Greece www.sqlschool.gr
2012 I became MCT Regional Lead by Microsoft Learning
Program.
2013 I was certified as MCSE : Data Platform & Business
Intelligence
Antonios Chatzipavlis
Database Architect,
SQL Server Evangelist
MCT, MCSE, MCITP, MCPD, MCSD, MCDBA, MCSA, MCTS,
MCAD, MCP, OCA, ITIL-F
SQLschool.gr
Team
Antonios Chatzipavlis
SQL Server Evangelist • Trainer
Vassilis Ioannidis
SQL Server Expert • Trainer
Fivi Panopoulou
System Engineer • Speaker
Sotiris Karras
System Engineer • Speaker
Followus
insocialmedia
@antoniosch / @sqlschool
fb/sqlschoolgr
yt/c/SqlschoolGr
SQL School Greece group
Helpneeded?
help@sqlschool.gr
Presentation
Content
 Introduction of Stretch Database?
 Limitations and blocking issues
 Stretch Database Pricing
 Backup and Restore of Stretch DB
 FQA
Introduction of Stretch Database
 What is the Stretch database?
 What are the benefits of Stretch database?
 What does Stretch database do?
 Is Stretch database for you?
 What kind of databases and tables are candidates for
Stretch database?
 Stretch database Architecture
 Security and Data Access
On-premises
SQL Server
WhatistheStretch
Database?
Hot/Online
Business data
Cold/Closed
Business data
Trickle data move
Transparent remote
query processing
 Provides cost-effective availability for cold data
 Doesn’t require changes to queries or applications
 Streamlines on-premises data maintenance
 Keeps your data secure even during migration
What are the benefitsof StretchDatabase?
 Can migrate the entire table
 If you store historical data in a separate table
 Can specify a filter predicate to select
the rows to migrate
 If your table contains both historical and current data
 Ensures that no data is lost
 If a failure occurs during migration.
 It also has retry logic to handle connection issues that may occur
during migration.
 A dynamic management view provides the status of migration.
What does Stretchdatabase do?
 You can pause data migration
 To troubleshoot problems on the local server
 To maximize the available network bandwidth.
 You don't have to change existing queries and client apps.
 You continue to have seamless access to both local and remote data, even during data migration.
 There is a small amount of latency for remote queries, but you only encounter this latency when you query the historical
data.
IsStretchDatabaseforyou?
As Decision Maker As DBA
I have to keep transactional data
for a long time.
The size of my tables is getting out
of control.
Sometimes I have to query the
historical data.
My users say that they want access
to historical data, but they only
rarely use it.
I have apps, including older apps,
that I don’t want to update.
I have to keep buying and adding
more storage.
I want to find a way to save money
on storage.
I can’t backup or restore such large
tables within the SLA.
 Transactional databases with large amounts of historical
data
 Temporal table feature of SQL Server
 Use Stretch Database to migrate all or part of the associated history table to
cost-effective storage in Azure.
 Use Stretch Database Advisor to identify databases and
tables for Stretch Database.
What kind of databasesand tables are candidatesfor StretchDatabase?
StretchDatabaseArchitecture
Security and Data Access
 Only system processes can access the linked server
definition behind Stretch Database.
 User logins can't issue queries through the linked server definition to the remote
endpoint.
 Stretch Database does not change the permissions model
of an existing database.
 User logins can query the data in a table with Stretch Database enabled through the
local database.
 The local database performs permission checks for any
actions initiated by the user in the same way as it does for
any other objects.
 If you're authorized to access the table with Stretch Database enabled, you have
access to all its contents for which you're authorized regardless of where the data
physically resides
Limitations and blocking issues
 Blocking issues
 Limitations
Blockingissues Table properties • More than 1,023 columns
• More than 998 indexes
• Tables that contain FILESTREAM data
• FileTables
• Replicated tables
• Tables that are actively using Change Tracking or Change Data Capture
• Memory-optimized tables
Data types and
column
properties
• text, ntext and image
• timestamp
• sql_variant
• XML
• geometry
• geography
• hierarchyid
• CLR user-defined types (UDTs)
Column types • COLUMN_SET
• Computed columns
Constraints • Check constraints
• Default constraints
• Foreign key constraints that reference the table
• In a parent-child relationship (for example, Order and Order_Detail), you can stretch the child table
(Order_Detail) but not the parent table (Order).
Indexes • Full text indexes
• XML indexes
• Spatial indexes
• Indexed views that reference the table
 UNIQUE constraints and PRIMARY KEY constraints are not
enforced in the Azure table that contains the migrated data
from a Stretch-enabled table.
 You can't UPDATE or DELETE rows in the Azure table that
contains the migrated data from a Stretch-enabled table
 You can't INSERT rows into a Stretch-enabled table on a
linked server.
 You can't create an index for a view that includes Stretch-
enabled tables.
 Filters on SQL Server indexes are not propagated to the
remote table.
Limitations
Stretch Database in Action
Stretch Database Pricing
StretchDatabasePricing
DSU PRICE
100 €1.0541/hr (~€784/mo)
200 €2.1083/hr (~€1,569/mo)
300 €3.1624/hr (~€2,353/mo)
400 €4.2165/hr (~€3,137/mo)
500 €5.2706/hr (~€3,921/mo)
600 €6.3248/hr (~€4,706/mo)
1000 €10.54/hr (~€7,843/mo)
1200 €12.65/hr (~€9,411/mo)
1500 €15.81/hr (~€11,764/mo)
2000 €21.08/hr (~€15,685/mo)
What is a DSU ?
(Database Stretch Unit)
As part of providing a more predictable
performance experience for customers, SQL
Stretch Database is introducing the Database
Stretch Unit (DSU).
A DSU represents the power of the query and
data migration performance and is quantified by
workload objectives: how fast rows are migrated
to Azure, written, read and computed against.
• Storage rates are based on standard RA-GRS Page Blob rates.
No preview discounts are applied to the storage charges.
See storage pricing page for details.
• Storage transactions are not billed; customers only pay for
data stored, not storage transactions.
• Outbound data transfers are charged at regular data
transfer rates.
Backup and Restore of Stretch DB
 Backup Stretch database
 Restore Stretch database
 You can continue to use the methods that you currently
use
 A backup of a Stretch-enabled database is a shallow
backup that does not include the data migrated to the
remote server.
 The backups for Azure SQL Databases for Basic, Standard,
and Premium service tiers are taken every hour.
 The backup retention period varies depending on the service tier level.
 Basic -> 7 days
 Standard -> 14 days
 Premium -> 35 days.
 You can restore Azure SQL Databases by using the Microsoft Azure web portal.
Backup StretchDatabase
 Restore the database from a backup.
 Run the stored procedure sys.sp_rda_reauthorize_db to
reconnect the local Stretch-enabled database to Azure.
 Provide the existing database scoped credential as a sysname or a varchar(128)
value. Don't use varchar(max)
 You can look up the credential name in the view sys.database_scoped_credentials
 Specify whether to make a copy of the remote data and connect to the copy.
Restore StretchDatabase
DECLARE @credentialName nvarchar(128);
SET @credentialName = N'<existing_database_scoped_credential_name>';
EXEC sp_rda_reauthorize_db @credential = @credentialName, @with_copy = 0;
Stretch db   sql server 2016 (sn0028)
Open the catalog views sys.databases and sys.tables to see
info about Stretch-enabled SQL Server databases and
tables.
Get infoabout local databases and tables enabledfor StretchDatabase
Open the catalog views sys.remote_data_archive_databases
and sys.remote_data_archive_tables to see info about the
remote databases and tables in which migrated data is
stored.
Get infoabout remotedatabases and tables used by StretchDatabase
Open the catalog view sys.remote_data_archive_tables and
check the value of the filter_predicate column to identify
the function that Stretch Database is using to select rows to
migrate.
If the value is null, the entire table is eligible to be migrated.
Checkthe filterpredicateappliedto a table
Stretch Monitor for a database in SSMS
Or
sys.dm_db_rda_migration_status DMV to see how many
batches and rows of data have been migrated
Checkthe status of data migration
Queries that include my Stretch-enabled table are slow
If query performance degrades significantly, review the
following possible problems.
Is your Azure server in a different geographical region than your SQL
Server? Configure your Azure server to be in the same geographical region as
your SQL Server to reduce network latency.
Your network conditions may have degraded. Contact your network
administrator for info about recent issues or outages.
About queryperformance
Stretch db   sql server 2016 (sn0028)
Stretch db   sql server 2016 (sn0028)
S ELECT KN OWLE D GE FROM SQL SE RVE R
Copyright © 2015 SQLschool.gr. All right reserved.
PRESENTER MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION
Ad

More Related Content

What's hot (20)

SQL Server 2016 new features
SQL Server 2016 new featuresSQL Server 2016 new features
SQL Server 2016 new features
SpanishPASSVC
 
What's new in SQL Server 2016
What's new in SQL Server 2016What's new in SQL Server 2016
What's new in SQL Server 2016
Onomi
 
Everything you need to know about SQL Server 2016
Everything you need to know about SQL Server 2016Everything you need to know about SQL Server 2016
Everything you need to know about SQL Server 2016
Softchoice Corporation
 
Row level security
Row level securityRow level security
Row level security
Antonios Chatzipavlis
 
Using extended events for troubleshooting sql server
Using extended events for troubleshooting sql serverUsing extended events for troubleshooting sql server
Using extended events for troubleshooting sql server
Antonios Chatzipavlis
 
Building Data Warehouse in SQL Server
Building Data Warehouse in SQL ServerBuilding Data Warehouse in SQL Server
Building Data Warehouse in SQL Server
Antonios Chatzipavlis
 
Stretch Database
Stretch DatabaseStretch Database
Stretch Database
SolidQ
 
Introduction to Machine Learning on Azure
Introduction to Machine Learning on AzureIntroduction to Machine Learning on Azure
Introduction to Machine Learning on Azure
Antonios Chatzipavlis
 
SQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite ThingsSQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite Things
Hostway|HOSTING
 
SQL Server 2016 Editions
SQL Server 2016 Editions SQL Server 2016 Editions
SQL Server 2016 Editions
Onomi
 
Introduction to snowflake
Introduction to snowflakeIntroduction to snowflake
Introduction to snowflake
Sunil Gurav
 
Exploring sql server 2016 bi
Exploring sql server 2016 biExploring sql server 2016 bi
Exploring sql server 2016 bi
Antonios Chatzipavlis
 
SQL server 2016 New Features
SQL server 2016 New FeaturesSQL server 2016 New Features
SQL server 2016 New Features
Amin Mesbahi
 
SQL Server 2016 novelties
SQL Server 2016 noveltiesSQL Server 2016 novelties
SQL Server 2016 novelties
MSDEVMTL
 
A Crash Course in SQL Server Administration for Reluctant Database Administra...
A Crash Course in SQL Server Administration for Reluctant Database Administra...A Crash Course in SQL Server Administration for Reluctant Database Administra...
A Crash Course in SQL Server Administration for Reluctant Database Administra...
Chad Petrovay
 
SQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and EnhancementsSQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and Enhancements
John Martin
 
Troubleshooting sql server
Troubleshooting sql serverTroubleshooting sql server
Troubleshooting sql server
Antonios Chatzipavlis
 
World2016_T5_S7_TeradataFunctionalOverview
World2016_T5_S7_TeradataFunctionalOverviewWorld2016_T5_S7_TeradataFunctionalOverview
World2016_T5_S7_TeradataFunctionalOverview
Farah Omer
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Antonios Chatzipavlis
 
Data virtualization using polybase
Data virtualization using polybaseData virtualization using polybase
Data virtualization using polybase
Antonios Chatzipavlis
 
SQL Server 2016 new features
SQL Server 2016 new featuresSQL Server 2016 new features
SQL Server 2016 new features
SpanishPASSVC
 
What's new in SQL Server 2016
What's new in SQL Server 2016What's new in SQL Server 2016
What's new in SQL Server 2016
Onomi
 
Everything you need to know about SQL Server 2016
Everything you need to know about SQL Server 2016Everything you need to know about SQL Server 2016
Everything you need to know about SQL Server 2016
Softchoice Corporation
 
Using extended events for troubleshooting sql server
Using extended events for troubleshooting sql serverUsing extended events for troubleshooting sql server
Using extended events for troubleshooting sql server
Antonios Chatzipavlis
 
Building Data Warehouse in SQL Server
Building Data Warehouse in SQL ServerBuilding Data Warehouse in SQL Server
Building Data Warehouse in SQL Server
Antonios Chatzipavlis
 
Stretch Database
Stretch DatabaseStretch Database
Stretch Database
SolidQ
 
Introduction to Machine Learning on Azure
Introduction to Machine Learning on AzureIntroduction to Machine Learning on Azure
Introduction to Machine Learning on Azure
Antonios Chatzipavlis
 
SQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite ThingsSQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite Things
Hostway|HOSTING
 
SQL Server 2016 Editions
SQL Server 2016 Editions SQL Server 2016 Editions
SQL Server 2016 Editions
Onomi
 
Introduction to snowflake
Introduction to snowflakeIntroduction to snowflake
Introduction to snowflake
Sunil Gurav
 
SQL server 2016 New Features
SQL server 2016 New FeaturesSQL server 2016 New Features
SQL server 2016 New Features
Amin Mesbahi
 
SQL Server 2016 novelties
SQL Server 2016 noveltiesSQL Server 2016 novelties
SQL Server 2016 novelties
MSDEVMTL
 
A Crash Course in SQL Server Administration for Reluctant Database Administra...
A Crash Course in SQL Server Administration for Reluctant Database Administra...A Crash Course in SQL Server Administration for Reluctant Database Administra...
A Crash Course in SQL Server Administration for Reluctant Database Administra...
Chad Petrovay
 
SQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and EnhancementsSQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and Enhancements
John Martin
 
World2016_T5_S7_TeradataFunctionalOverview
World2016_T5_S7_TeradataFunctionalOverviewWorld2016_T5_S7_TeradataFunctionalOverview
World2016_T5_S7_TeradataFunctionalOverview
Farah Omer
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Antonios Chatzipavlis
 

Viewers also liked (13)

Department Row Level Security Customization For People Soft General Ledger.Ppt
Department Row Level Security Customization For People Soft General Ledger.PptDepartment Row Level Security Customization For People Soft General Ledger.Ppt
Department Row Level Security Customization For People Soft General Ledger.Ppt
wonga6
 
Pre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctlyPre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctly
Antonios Chatzipavlis
 
Auditing Data Access in SQL Server
Auditing Data Access in SQL ServerAuditing Data Access in SQL Server
Auditing Data Access in SQL Server
Antonios Chatzipavlis
 
Project 2 Final presentation. December 2016
Project 2 Final presentation. December 2016Project 2 Final presentation. December 2016
Project 2 Final presentation. December 2016
enterpriseresearchcentre
 
What's New for the BI workload in SharePoint 2016 and SQL Server 2016
What's New for the BI workload in SharePoint 2016 and SQL Server 2016What's New for the BI workload in SharePoint 2016 and SQL Server 2016
What's New for the BI workload in SharePoint 2016 and SQL Server 2016
SPC Adriatics
 
Dynamic data masking sql server 2016
Dynamic data masking sql server 2016Dynamic data masking sql server 2016
Dynamic data masking sql server 2016
Antonios Chatzipavlis
 
Exploring sql server 2016
Exploring sql server 2016Exploring sql server 2016
Exploring sql server 2016
Antonios Chatzipavlis
 
How to secure your data in Office 365
How to secure your data in Office 365 How to secure your data in Office 365
How to secure your data in Office 365
SPC Adriatics
 
Automating Big Data (Dec-2016)
Automating Big Data  (Dec-2016)Automating Big Data  (Dec-2016)
Automating Big Data (Dec-2016)
Seth Familian
 
DQS & MDS in SQL Server 2016
DQS & MDS in SQL Server 2016DQS & MDS in SQL Server 2016
DQS & MDS in SQL Server 2016
Sébastien Notebaert
 
Working With Big Data - Nov 2016
Working With Big Data - Nov 2016Working With Big Data - Nov 2016
Working With Big Data - Nov 2016
Seth Familian
 
Designing Teams for Emerging Challenges
Designing Teams for Emerging ChallengesDesigning Teams for Emerging Challenges
Designing Teams for Emerging Challenges
Aaron Irizarry
 
Visual Design with Data
Visual Design with DataVisual Design with Data
Visual Design with Data
Seth Familian
 
Department Row Level Security Customization For People Soft General Ledger.Ppt
Department Row Level Security Customization For People Soft General Ledger.PptDepartment Row Level Security Customization For People Soft General Ledger.Ppt
Department Row Level Security Customization For People Soft General Ledger.Ppt
wonga6
 
Pre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctlyPre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctly
Antonios Chatzipavlis
 
Project 2 Final presentation. December 2016
Project 2 Final presentation. December 2016Project 2 Final presentation. December 2016
Project 2 Final presentation. December 2016
enterpriseresearchcentre
 
What's New for the BI workload in SharePoint 2016 and SQL Server 2016
What's New for the BI workload in SharePoint 2016 and SQL Server 2016What's New for the BI workload in SharePoint 2016 and SQL Server 2016
What's New for the BI workload in SharePoint 2016 and SQL Server 2016
SPC Adriatics
 
Dynamic data masking sql server 2016
Dynamic data masking sql server 2016Dynamic data masking sql server 2016
Dynamic data masking sql server 2016
Antonios Chatzipavlis
 
How to secure your data in Office 365
How to secure your data in Office 365 How to secure your data in Office 365
How to secure your data in Office 365
SPC Adriatics
 
Automating Big Data (Dec-2016)
Automating Big Data  (Dec-2016)Automating Big Data  (Dec-2016)
Automating Big Data (Dec-2016)
Seth Familian
 
Working With Big Data - Nov 2016
Working With Big Data - Nov 2016Working With Big Data - Nov 2016
Working With Big Data - Nov 2016
Seth Familian
 
Designing Teams for Emerging Challenges
Designing Teams for Emerging ChallengesDesigning Teams for Emerging Challenges
Designing Teams for Emerging Challenges
Aaron Irizarry
 
Visual Design with Data
Visual Design with DataVisual Design with Data
Visual Design with Data
Seth Familian
 
Ad

Similar to Stretch db sql server 2016 (sn0028) (20)

SQL Server 2016 - Stretch DB
SQL Server 2016 - Stretch DB SQL Server 2016 - Stretch DB
SQL Server 2016 - Stretch DB
Shy Engelberg
 
Novidades do SQL Server 2016
Novidades do SQL Server 2016Novidades do SQL Server 2016
Novidades do SQL Server 2016
Marcos Freccia
 
Sql interview-question-part-6
Sql interview-question-part-6Sql interview-question-part-6
Sql interview-question-part-6
kaashiv1
 
Ebook6
Ebook6Ebook6
Ebook6
kaashiv1
 
Sql interview-question-part-6
Sql interview-question-part-6Sql interview-question-part-6
Sql interview-question-part-6
kaashiv1
 
Sql interview question part 6
Sql interview question part 6Sql interview question part 6
Sql interview question part 6
kaashiv1
 
Ebook6
Ebook6Ebook6
Ebook6
kaashiv1
 
Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentation
kaashiv1
 
DBArtisan XE6 Datasheet
DBArtisan XE6 DatasheetDBArtisan XE6 Datasheet
DBArtisan XE6 Datasheet
Embarcadero Technologies
 
Sql interview question part 12
Sql interview question part 12Sql interview question part 12
Sql interview question part 12
kaashiv1
 
Ebook12
Ebook12Ebook12
Ebook12
kaashiv1
 
Sql interview question part 12
Sql interview question part 12Sql interview question part 12
Sql interview question part 12
kaashiv1
 
What's new in SQL Server 2016
What's new in SQL Server 2016What's new in SQL Server 2016
What's new in SQL Server 2016
James Serra
 
Migrate SQL Workloads to Azure
Migrate SQL Workloads to AzureMigrate SQL Workloads to Azure
Migrate SQL Workloads to Azure
Antonios Chatzipavlis
 
Migration to ClickHouse. Practical guide, by Alexander Zaitsev
Migration to ClickHouse. Practical guide, by Alexander ZaitsevMigration to ClickHouse. Practical guide, by Alexander Zaitsev
Migration to ClickHouse. Practical guide, by Alexander Zaitsev
Altinity Ltd
 
Introduction to Azure Data Lake
Introduction to Azure Data LakeIntroduction to Azure Data Lake
Introduction to Azure Data Lake
Antonios Chatzipavlis
 
Ebook10
Ebook10Ebook10
Ebook10
kaashiv1
 
Sql interview question part 10
Sql interview question part 10Sql interview question part 10
Sql interview question part 10
kaashiv1
 
Ebook5
Ebook5Ebook5
Ebook5
kaashiv1
 
Sql interview question part 5
Sql interview question part 5Sql interview question part 5
Sql interview question part 5
kaashiv1
 
SQL Server 2016 - Stretch DB
SQL Server 2016 - Stretch DB SQL Server 2016 - Stretch DB
SQL Server 2016 - Stretch DB
Shy Engelberg
 
Novidades do SQL Server 2016
Novidades do SQL Server 2016Novidades do SQL Server 2016
Novidades do SQL Server 2016
Marcos Freccia
 
Sql interview-question-part-6
Sql interview-question-part-6Sql interview-question-part-6
Sql interview-question-part-6
kaashiv1
 
Sql interview-question-part-6
Sql interview-question-part-6Sql interview-question-part-6
Sql interview-question-part-6
kaashiv1
 
Sql interview question part 6
Sql interview question part 6Sql interview question part 6
Sql interview question part 6
kaashiv1
 
Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentation
kaashiv1
 
Sql interview question part 12
Sql interview question part 12Sql interview question part 12
Sql interview question part 12
kaashiv1
 
Sql interview question part 12
Sql interview question part 12Sql interview question part 12
Sql interview question part 12
kaashiv1
 
What's new in SQL Server 2016
What's new in SQL Server 2016What's new in SQL Server 2016
What's new in SQL Server 2016
James Serra
 
Migration to ClickHouse. Practical guide, by Alexander Zaitsev
Migration to ClickHouse. Practical guide, by Alexander ZaitsevMigration to ClickHouse. Practical guide, by Alexander Zaitsev
Migration to ClickHouse. Practical guide, by Alexander Zaitsev
Altinity Ltd
 
Sql interview question part 10
Sql interview question part 10Sql interview question part 10
Sql interview question part 10
kaashiv1
 
Sql interview question part 5
Sql interview question part 5Sql interview question part 5
Sql interview question part 5
kaashiv1
 
Ad

More from Antonios Chatzipavlis (15)

SQL server Backup Restore Revealed
SQL server Backup Restore RevealedSQL server Backup Restore Revealed
SQL server Backup Restore Revealed
Antonios Chatzipavlis
 
Machine Learning in SQL Server 2019
Machine Learning in SQL Server 2019Machine Learning in SQL Server 2019
Machine Learning in SQL Server 2019
Antonios Chatzipavlis
 
Workload Management in SQL Server 2019
Workload Management in SQL Server 2019Workload Management in SQL Server 2019
Workload Management in SQL Server 2019
Antonios Chatzipavlis
 
Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)
Antonios Chatzipavlis
 
Introduction to DAX Language
Introduction to DAX LanguageIntroduction to DAX Language
Introduction to DAX Language
Antonios Chatzipavlis
 
Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs
Antonios Chatzipavlis
 
Exploring T-SQL Anti-Patterns
Exploring T-SQL Anti-Patterns Exploring T-SQL Anti-Patterns
Exploring T-SQL Anti-Patterns
Antonios Chatzipavlis
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure
Antonios Chatzipavlis
 
Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019
Antonios Chatzipavlis
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure
Antonios Chatzipavlis
 
SQLServer Database Structures
SQLServer Database Structures SQLServer Database Structures
SQLServer Database Structures
Antonios Chatzipavlis
 
Sqlschool 2017 recap - 2018 plans
Sqlschool 2017 recap - 2018 plansSqlschool 2017 recap - 2018 plans
Sqlschool 2017 recap - 2018 plans
Antonios Chatzipavlis
 
Statistics and Indexes Internals
Statistics and Indexes InternalsStatistics and Indexes Internals
Statistics and Indexes Internals
Antonios Chatzipavlis
 
Azure SQL Data Warehouse
Azure SQL Data Warehouse Azure SQL Data Warehouse
Azure SQL Data Warehouse
Antonios Chatzipavlis
 
Introduction to azure document db
Introduction to azure document dbIntroduction to azure document db
Introduction to azure document db
Antonios Chatzipavlis
 
Workload Management in SQL Server 2019
Workload Management in SQL Server 2019Workload Management in SQL Server 2019
Workload Management in SQL Server 2019
Antonios Chatzipavlis
 
Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)Loading Data into Azure SQL DW (Synapse Analytics)
Loading Data into Azure SQL DW (Synapse Analytics)
Antonios Chatzipavlis
 
Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs Building diagnostic queries using DMVs and DMFs
Building diagnostic queries using DMVs and DMFs
Antonios Chatzipavlis
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure
Antonios Chatzipavlis
 
Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019Modernizing your database with SQL Server 2019
Modernizing your database with SQL Server 2019
Antonios Chatzipavlis
 
Designing a modern data warehouse in azure
Designing a modern data warehouse in azure   Designing a modern data warehouse in azure
Designing a modern data warehouse in azure
Antonios Chatzipavlis
 

Recently uploaded (20)

Jignesh Shah - The Innovator and Czar of Exchanges
Jignesh Shah - The Innovator and Czar of ExchangesJignesh Shah - The Innovator and Czar of Exchanges
Jignesh Shah - The Innovator and Czar of Exchanges
Jignesh Shah Innovator
 
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
Ivano Malavolta
 
UiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer OpportunitiesUiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer Opportunities
DianaGray10
 
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptxReimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
John Moore
 
Cybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and MitigationCybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and Mitigation
VICTOR MAESTRE RAMIREZ
 
The Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI IntegrationThe Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI Integration
Re-solution Data Ltd
 
Transcript: Canadian book publishing: Insights from the latest salary survey ...
Transcript: Canadian book publishing: Insights from the latest salary survey ...Transcript: Canadian book publishing: Insights from the latest salary survey ...
Transcript: Canadian book publishing: Insights from the latest salary survey ...
BookNet Canada
 
AI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of DocumentsAI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of Documents
UiPathCommunity
 
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdfKit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Wonjun Hwang
 
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
SOFTTECHHUB
 
Agentic Automation - Delhi UiPath Community Meetup
Agentic Automation - Delhi UiPath Community MeetupAgentic Automation - Delhi UiPath Community Meetup
Agentic Automation - Delhi UiPath Community Meetup
Manoj Batra (1600 + Connections)
 
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Cyntexa
 
UiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer OpportunitiesUiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer Opportunities
DianaGray10
 
Does Pornify Allow NSFW? Everything You Should Know
Does Pornify Allow NSFW? Everything You Should KnowDoes Pornify Allow NSFW? Everything You Should Know
Does Pornify Allow NSFW? Everything You Should Know
Pornify CC
 
fennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solutionfennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solution
shallal2
 
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Markus Eisele
 
Slack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teamsSlack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teams
Nacho Cougil
 
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
 
Build With AI - In Person Session Slides.pdf
Build With AI - In Person Session Slides.pdfBuild With AI - In Person Session Slides.pdf
Build With AI - In Person Session Slides.pdf
Google Developer Group - Harare
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
Jignesh Shah - The Innovator and Czar of Exchanges
Jignesh Shah - The Innovator and Czar of ExchangesJignesh Shah - The Innovator and Czar of Exchanges
Jignesh Shah - The Innovator and Czar of Exchanges
Jignesh Shah Innovator
 
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
Ivano Malavolta
 
UiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer OpportunitiesUiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer Opportunities
DianaGray10
 
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptxReimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
Reimagine How You and Your Team Work with Microsoft 365 Copilot.pptx
John Moore
 
Cybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and MitigationCybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and Mitigation
VICTOR MAESTRE RAMIREZ
 
The Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI IntegrationThe Future of Cisco Cloud Security: Innovations and AI Integration
The Future of Cisco Cloud Security: Innovations and AI Integration
Re-solution Data Ltd
 
Transcript: Canadian book publishing: Insights from the latest salary survey ...
Transcript: Canadian book publishing: Insights from the latest salary survey ...Transcript: Canadian book publishing: Insights from the latest salary survey ...
Transcript: Canadian book publishing: Insights from the latest salary survey ...
BookNet Canada
 
AI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of DocumentsAI Agents at Work: UiPath, Maestro & the Future of Documents
AI Agents at Work: UiPath, Maestro & the Future of Documents
UiPathCommunity
 
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdfKit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Wonjun Hwang
 
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
The No-Code Way to Build a Marketing Team with One AI Agent (Download the n8n...
SOFTTECHHUB
 
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Cyntexa
 
UiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer OpportunitiesUiPath Agentic Automation: Community Developer Opportunities
UiPath Agentic Automation: Community Developer Opportunities
DianaGray10
 
Does Pornify Allow NSFW? Everything You Should Know
Does Pornify Allow NSFW? Everything You Should KnowDoes Pornify Allow NSFW? Everything You Should Know
Does Pornify Allow NSFW? Everything You Should Know
Pornify CC
 
fennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solutionfennec fox optimization algorithm for optimal solution
fennec fox optimization algorithm for optimal solution
shallal2
 
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Enterprise Integration Is Dead! Long Live AI-Driven Integration with Apache C...
Markus Eisele
 
Slack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teamsSlack like a pro: strategies for 10x engineering teams
Slack like a pro: strategies for 10x engineering teams
Nacho Cougil
 
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Hybridize Functions: A Tool for Automatically Refactoring Imperative Deep Lea...
Raffi Khatchadourian
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 

Stretch db sql server 2016 (sn0028)

  • 3. PresenterInfo 1982 I started working with computers 1988 I started my professional career in computers industry. 1996 I started working with SQL Server 6.0 1998 I earned my first certification at Microsoft as Microsoft Certified Solution Developer (3rd in Greece) I started my career as Microsoft Certified Trainer (MCT) with more than 25.000 hours of training until now! 2010 I became for first time Microsoft MVP on SQL Server I created the SQL School Greece www.sqlschool.gr 2012 I became MCT Regional Lead by Microsoft Learning Program. 2013 I was certified as MCSE : Data Platform & Business Intelligence Antonios Chatzipavlis Database Architect, SQL Server Evangelist MCT, MCSE, MCITP, MCPD, MCSD, MCDBA, MCSA, MCTS, MCAD, MCP, OCA, ITIL-F
  • 4. SQLschool.gr Team Antonios Chatzipavlis SQL Server Evangelist • Trainer Vassilis Ioannidis SQL Server Expert • Trainer Fivi Panopoulou System Engineer • Speaker Sotiris Karras System Engineer • Speaker
  • 7. Presentation Content  Introduction of Stretch Database?  Limitations and blocking issues  Stretch Database Pricing  Backup and Restore of Stretch DB  FQA
  • 8. Introduction of Stretch Database  What is the Stretch database?  What are the benefits of Stretch database?  What does Stretch database do?  Is Stretch database for you?  What kind of databases and tables are candidates for Stretch database?  Stretch database Architecture  Security and Data Access
  • 10.  Provides cost-effective availability for cold data  Doesn’t require changes to queries or applications  Streamlines on-premises data maintenance  Keeps your data secure even during migration What are the benefitsof StretchDatabase?
  • 11.  Can migrate the entire table  If you store historical data in a separate table  Can specify a filter predicate to select the rows to migrate  If your table contains both historical and current data  Ensures that no data is lost  If a failure occurs during migration.  It also has retry logic to handle connection issues that may occur during migration.  A dynamic management view provides the status of migration. What does Stretchdatabase do?  You can pause data migration  To troubleshoot problems on the local server  To maximize the available network bandwidth.  You don't have to change existing queries and client apps.  You continue to have seamless access to both local and remote data, even during data migration.  There is a small amount of latency for remote queries, but you only encounter this latency when you query the historical data.
  • 12. IsStretchDatabaseforyou? As Decision Maker As DBA I have to keep transactional data for a long time. The size of my tables is getting out of control. Sometimes I have to query the historical data. My users say that they want access to historical data, but they only rarely use it. I have apps, including older apps, that I don’t want to update. I have to keep buying and adding more storage. I want to find a way to save money on storage. I can’t backup or restore such large tables within the SLA.
  • 13.  Transactional databases with large amounts of historical data  Temporal table feature of SQL Server  Use Stretch Database to migrate all or part of the associated history table to cost-effective storage in Azure.  Use Stretch Database Advisor to identify databases and tables for Stretch Database. What kind of databasesand tables are candidatesfor StretchDatabase?
  • 15. Security and Data Access  Only system processes can access the linked server definition behind Stretch Database.  User logins can't issue queries through the linked server definition to the remote endpoint.  Stretch Database does not change the permissions model of an existing database.  User logins can query the data in a table with Stretch Database enabled through the local database.  The local database performs permission checks for any actions initiated by the user in the same way as it does for any other objects.  If you're authorized to access the table with Stretch Database enabled, you have access to all its contents for which you're authorized regardless of where the data physically resides
  • 16. Limitations and blocking issues  Blocking issues  Limitations
  • 17. Blockingissues Table properties • More than 1,023 columns • More than 998 indexes • Tables that contain FILESTREAM data • FileTables • Replicated tables • Tables that are actively using Change Tracking or Change Data Capture • Memory-optimized tables Data types and column properties • text, ntext and image • timestamp • sql_variant • XML • geometry • geography • hierarchyid • CLR user-defined types (UDTs) Column types • COLUMN_SET • Computed columns Constraints • Check constraints • Default constraints • Foreign key constraints that reference the table • In a parent-child relationship (for example, Order and Order_Detail), you can stretch the child table (Order_Detail) but not the parent table (Order). Indexes • Full text indexes • XML indexes • Spatial indexes • Indexed views that reference the table
  • 18.  UNIQUE constraints and PRIMARY KEY constraints are not enforced in the Azure table that contains the migrated data from a Stretch-enabled table.  You can't UPDATE or DELETE rows in the Azure table that contains the migrated data from a Stretch-enabled table  You can't INSERT rows into a Stretch-enabled table on a linked server.  You can't create an index for a view that includes Stretch- enabled tables.  Filters on SQL Server indexes are not propagated to the remote table. Limitations
  • 21. StretchDatabasePricing DSU PRICE 100 €1.0541/hr (~€784/mo) 200 €2.1083/hr (~€1,569/mo) 300 €3.1624/hr (~€2,353/mo) 400 €4.2165/hr (~€3,137/mo) 500 €5.2706/hr (~€3,921/mo) 600 €6.3248/hr (~€4,706/mo) 1000 €10.54/hr (~€7,843/mo) 1200 €12.65/hr (~€9,411/mo) 1500 €15.81/hr (~€11,764/mo) 2000 €21.08/hr (~€15,685/mo) What is a DSU ? (Database Stretch Unit) As part of providing a more predictable performance experience for customers, SQL Stretch Database is introducing the Database Stretch Unit (DSU). A DSU represents the power of the query and data migration performance and is quantified by workload objectives: how fast rows are migrated to Azure, written, read and computed against. • Storage rates are based on standard RA-GRS Page Blob rates. No preview discounts are applied to the storage charges. See storage pricing page for details. • Storage transactions are not billed; customers only pay for data stored, not storage transactions. • Outbound data transfers are charged at regular data transfer rates.
  • 22. Backup and Restore of Stretch DB  Backup Stretch database  Restore Stretch database
  • 23.  You can continue to use the methods that you currently use  A backup of a Stretch-enabled database is a shallow backup that does not include the data migrated to the remote server.  The backups for Azure SQL Databases for Basic, Standard, and Premium service tiers are taken every hour.  The backup retention period varies depending on the service tier level.  Basic -> 7 days  Standard -> 14 days  Premium -> 35 days.  You can restore Azure SQL Databases by using the Microsoft Azure web portal. Backup StretchDatabase
  • 24.  Restore the database from a backup.  Run the stored procedure sys.sp_rda_reauthorize_db to reconnect the local Stretch-enabled database to Azure.  Provide the existing database scoped credential as a sysname or a varchar(128) value. Don't use varchar(max)  You can look up the credential name in the view sys.database_scoped_credentials  Specify whether to make a copy of the remote data and connect to the copy. Restore StretchDatabase DECLARE @credentialName nvarchar(128); SET @credentialName = N'<existing_database_scoped_credential_name>'; EXEC sp_rda_reauthorize_db @credential = @credentialName, @with_copy = 0;
  • 26. Open the catalog views sys.databases and sys.tables to see info about Stretch-enabled SQL Server databases and tables. Get infoabout local databases and tables enabledfor StretchDatabase
  • 27. Open the catalog views sys.remote_data_archive_databases and sys.remote_data_archive_tables to see info about the remote databases and tables in which migrated data is stored. Get infoabout remotedatabases and tables used by StretchDatabase
  • 28. Open the catalog view sys.remote_data_archive_tables and check the value of the filter_predicate column to identify the function that Stretch Database is using to select rows to migrate. If the value is null, the entire table is eligible to be migrated. Checkthe filterpredicateappliedto a table
  • 29. Stretch Monitor for a database in SSMS Or sys.dm_db_rda_migration_status DMV to see how many batches and rows of data have been migrated Checkthe status of data migration
  • 30. Queries that include my Stretch-enabled table are slow If query performance degrades significantly, review the following possible problems. Is your Azure server in a different geographical region than your SQL Server? Configure your Azure server to be in the same geographical region as your SQL Server to reduce network latency. Your network conditions may have degraded. Contact your network administrator for info about recent issues or outages. About queryperformance
  • 33. S ELECT KN OWLE D GE FROM SQL SE RVE R Copyright © 2015 SQLschool.gr. All right reserved. PRESENTER MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION
  翻译: