Stretch DB architecture

When you enable Stretch Database for an on-premise SQL Server 2017 database, SQL Server automatically creates a new stretch database in MS Azure SQL Database as an external source and a remote endpoint for the database.

When you query the database, the SQL Server's database engine runs the query against the local or remote database, depending on the data location. Queries against stretch-enabled tables return both local and remote data by default. This is completely transparent to the database user. This means that you can use Stretch Database without changing Transact-SQL code in your queries, procedures, or applications. You can stretch an entire table or a portion of table data. The data migration is done asynchronously ...

Get SQL Server 2017 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.