Reduce Azure SQL Database Size

前端 未结 3 1535
我在风中等你
我在风中等你 2021-01-05 09:35

I\'m doing my best an deleting rows and rebuilding indexes but the size of the database is growing really fast and I can\'t see the effect of my operations.

Is there

3条回答
  •  滥情空心
    2021-01-05 10:20

    Check out this Microsoft Post..

    https://docs.microsoft.com/en-us/azure/sql-database/sql-database-file-space-management#reclaim-unused-allocated-space

    Reclaim unused allocated space DBCC shrink Once databases have been identified for reclaiming unused allocated space, modify the name of the database in the following command to shrink the data files for each database.

    SQL

    -- Shrink database data space allocated.

    DBCC SHRINKDATABASE (N'db1')
    

    SHRINKFILE was not working for me on Azure SQL

提交回复
热议问题