Am trying to find if there's any equivalent option DBCC SHRINKFILE T-SQL command for the option "Reorganize pages before releasing unused space" that is seen when performing through SSMS.
The usual TRUNCATEONLY/TargetSize options does reduce the file size but does it implicitly reorganise the pages also? Because no explanation is provided in the BOL - https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-shrinkfile-transact-sql?view=sql-server-ver15
--In 'thoughts'...