Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • The Msg 8985 error is almost certainly because you ran the SHRINKFILE command from the wrong database (or while the database was detached). Commented Jan 23, 2018 at 0:49
  • Is it correct that your server is a SQL Server 2016? Are you maybe using an older version of SSMS? Commented Jan 23, 2018 at 9:18
  • Using SSMS 2017, patched to 14.0.17213.0 SQL version is 13.0.4206.0 DB compatibility level is SQL Server 2016 (130) Commented Mar 5, 2018 at 17:20