Shrinking a big database on a Microsoft SQL Server can take some time. And it’s one of those tasks, where you wont get a status until it’s finished. I really hate this… But this small T-SQL query can help:
dateadd(second,estimated_completion_time/ 1000, getdate()) as est_completion_time
command = 'DbccFilesCompact'
Simply open a new query windows, paste the query into the query windows and execute the query. The query outputs the progress in percent and the estimated completion time.
Feel free to follow him on Twitter and/ or leave a comment.
Latest posts by Patrick Terlisten (see all)
- Workaround for broken Windows 10 Start Menus with floating desktops - July 25, 2017
- Some thoughts about using Windows Server 2012 R2 instead of Windows 10 for VDI - July 24, 2017
- Data Protector Exchange GRE and IP-less Exchange DAG - July 23, 2017