You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- View database metadata
RESTORE HEADERONLY from disk='D:\Backups\database.bak'-- View database file list
RESTORE FILELISTONLY from disk='D:\Backups\AR24_sprint75.bak'
View database size
exec sp_spaceused
Reduce database size
-- Shrink database to target percentage (if possible)
DBCC SHRINKDATABASE (DatabaseName, 10)
-- Shrink file to target size (do not work with not empty files...)
DBCC SHRINKFILE (db_file_name, 10);