What is the process for restoring data for a specific table as of a particular date?
Could you please provide more details about the requirement, specifically:
Data is not available and yes restored data would be restored to a separate table for comparison
Hi @sanjay kumar ,
If you’re using OutSystems Cloud, I’d start by contacting OutSystems Support with the environment, entity/module name, and the required date and time, including the timezone. More information here: Temporary OutSystems Cloud database backup - OutSystems 11 Documentation
You could also consider Data Migration Manager (DMM), which supports selective data migration and recovery from an OutSystems database backup.
You would still need an available backup containing the table’s data from the required date.
Hi Sanjay,
Mihai covered OutSystems Cloud. If your environment is self-managed on SQL Server, you can do it yourself, as long as the database is in FULL recovery model and you still have the full backup plus the log backups that cover that date.
sqlRESTORE DATABASE OS_Restore FROM DISK = 'D:\Backup\outsystems_full.bak'WITH MOVE 'outsystems' TO 'D:\Data\OS_Restore.mdf', MOVE 'outsystems_log' TO 'D:\Data\OS_Restore_log.ldf', NORECOVERY;RESTORE LOG OS_Restore FROM DISK = 'D:\Backup\outsystems_log_01.trn'WITH STOPAT = '2026-09-15 18:00:00', RECOVERY;
If you have several log backups, apply them in order with NORECOVERY and put STOPAT and RECOVERY on the last one.
sqlSELECT e.NAME, e.PHYSICAL_TABLE_NAMEFROM OSSYS_ENTITY eJOIN OSSYS_ESPACE s ON s.ID = e.ESPACE_IDWHERE e.NAME = 'YourEntity' AND s.NAME = 'YourModule' AND e.IS_ACTIVE = 1
With SIMPLE recovery you can only go back to the time of a full or differential backup, not to an exact moment. Drop the restored database when you’re done, and do this together with your DBA.