SELECT * FROM Vehicle;
SELECT * FROM Rental;
SELECT * FROM v_VerfuegbareFahrzeuge;

-- Create Snapshot;
CREATE DATABASE [2025_5bhitn_konstantin_hintermayer_smarter_rentDB_snapshot]
ON
(
    NAME = [2025_5bhitn_konstantin_hintermayer_smarter_rentDB],
    FILENAME = N'/var/opt/mssql/data/smarter_rentDB.ss'
) AS SNAPSHOT OF [2025_5bhitn_konstantin_hintermayer_smarter_rentDB];
GO

-- Restore Snapshot

USE [master];
ALTER DATABASE [2025_5bhitn_konstantin_hintermayer_smarter_rentDB] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
RESTORE DATABASE [2025_5bhitn_konstantin_hintermayer_smarter_rentDB] FROM DATABASE_SNAPSHOT = '2025_5bhitn_konstantin_hintermayer_smarter_rentDB_snapshot';
GO