QuestionQ24
Monitor, configure, and optimize database resourcesYou have an Azure SQL database named DB1. You need to determine how much unused space, in megabytes, has been allocated to DB1. How should you complete the Transact-SQL query?
Select
SELECT SUM(size/ - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0) AS DatabaseDataSpaceAllocatedUnusedInMB FROM GROUP BY type_desc HAVING type_desc = 'ROWS';
Community Discussion