Stretch Database Extended stored procedures (Transact-SQL)
Applies to: SQL Server 2016 (13.x) and later versions
This section describes the extended stored procedures that are related to Stretch Database.
Important
Stretch Database is deprecated in SQL Server 2022 (16.x) and Azure SQL Database. This feature will be removed in a future version of the Database Engine. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
In this section
-
Removes the authenticated connection between a local Stretch-enabled database and the remote Azure database.
-
Gets the number of hours of migrated data that SQL Server retains in a staging table to help ensure a full restore of the remote Azure database, if a restore is necessary.
-
Restores the authenticated connection between a local database enabled for Stretch and the remote database.
-
Reconciles the batch ID stored in the Stretch-enabled SQL Server table for the most recently migrated data with the batch ID stored in the remote Azure table.
-
Reconciles the columns in the remote Azure table to the columns in the Stretch-enabled SQL Server table.
-
Queues a schema task to reconcile indexes on the remote table.
-
Specifies whether queries against the current Stretch-enabled database and its tables return both local and remote data (the default), or local data only.
-
Sets the number of hours of migrated data that SQL Server retains in a staging table to help ensure a full restore of the remote Azure database, if a restore is necessary.
-
Tests the connection from SQL Server to the remote Azure server and reports problems that may prevent data migration.