An Azure relational database service.
Welcome to Microsoft Q&A
Hello Vic Johnston,
This is a terrifying moment, but the good news is that your data is likely safe. You are currently unable to see the older history because of how Azure handles "Dropped" resources.
When you "dropped and recreated" the database, you effectively destroyed the original resource (Resource ID A) and created a brand new one (Resource ID B).
- The Problem: You are currently looking at the "Restore" blade for the New Database. Since this new database was only created ~1 hour ago, its transaction log history only goes back 1 hour. It does not inherit the history of the previous database, even if it has the same name.
The Solution: Restore the "Deleted" Database You need to restore from the Deleted resource, not the current active one.
- Go to the SQL Server Blade: Do not stay on the "Database" page. Navigate up to the logical SQL Server resource that hosted the database.
- Find Deleted Databases:
- In the left-hand menu, look under Data Management (or "Backups" depending on your portal version).
- Click on "Deleted databases".
- Locate & Restore:
- You should see the entry for the database that was dropped yesterday/earlier today.
- Select that specific entry and click Restore.
- This will allow you to pick a time before the drop event (e.g., yesterday).
Note: You will likely need to restore this as a new database name (e.g., MyDatabase_Restored), and then rename it or swap connection strings after verification.
😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily.