Share via

Azure Sql db

Rohit Kulkarni 731 Reputation points
2021-05-11T06:30:20.933+00:00

Hello Team,

I have 1 Azure SQL DB(15 Tables) of 1 TB.I need to clean the Azure SQL DB. Please advise me can i do the DBCC SHRINKDATABASE. So that it can reduce the size.

If no,Please advise me the correct suggestion to reduce the size of the DB.

Regards
Rohit

Azure SQL Database
0 comments No comments

1 answer

Sort by: Most helpful
  1. KalyanChanumolu-MSFT 8,361 Reputation points
    2021-05-11T12:48:28.147+00:00

    @Rohit Kulkarni Thank you for reaching out.

    You can use SHRINKDATABASE if you have a high number of Truncate, Delete table operations or ETL operations on this database
    Otherwise, it is usually not required to manually shrink a database. Some best practices are here

    Please be aware that after shrinking the database, indexes may become fragmented and lose their performance optimization effectiveness.
    You should use an index maintenance solution like SQL Server Index and Statistics Maintenance to rebuild and reorganize indexes after a shrink operation.

    Do let us know if you have any further questions.

    ----------

    If an answer is helpful, please "Accept answer" or "Up-Vote" which might help other community members reading this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.