Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Important
Azure SQL Edge will be retired on September 30, 2025. For more information and migration options, see the Retirement notice.
Note
Azure SQL Edge no longer supports the ARM64 platform.
Performs cleanup of obsolete records from tables that have data retention policies enabled. For more information, see Data Retention.
sys.sp_cleanup_data_retention
{ [ @schema_name = ] 'schema_name' } ,
{ [ @table_name = ] 'table_name' } ,
[ [ @rowcount = ] rowcount OUTPUT ]
The name of the owning schema for the table on which cleanup needs to be performed. schema_name is a required parameter of type sysname.
The name of the table on which cleanup operation needs to be performed. table_name is a required parameter of type sysname.
An optional OUTPUT parameter that represents the number of records cleanup from the table. rowcount is int.
Requires db_owner permissions.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today