| title | sys.sp_rda_get_rpo_duration (Transact-SQL) | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 06/10/2016 | ||
| ms.prod | sql | ||
| ms.reviewer | |||
| ms.technology | stored-procedures | ||
| ms.topic | language-reference | ||
| f1_keywords |
|
||
| dev_langs |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | 35882067-3072-47ff-9024-ca453c0f49a7 | ||
| author | MikeRayMSFT | ||
| ms.author | mikeray |
[!INCLUDEtsql-appliesto-ss2016-xxxx-xxxx-xxx-md]
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 point in time restore is necessary.
For more info, see Stretch Database reduces the risk of data loss for your Azure data by retaining migrated rows temporarily.
Transact-SQL Syntax Conventions
sp_rda_get_rpo_duration @durationinhours output
@durationinhours
Is the number of hours (a non-null integer value) of migrated data that SQL Server retains for the current Stretch-enabled database.
Requires db_owner permissions.
Change the value by running sys.sp_rda_set_rpo_duration (Transact-SQL).
sys.sp_rda_set_rpo_duration (Transact-SQL)
Restore Stretch-enabled databases (Stretch Database)
Stretch Database