SQL script to decompress the stored compressed data and calculate the size of it.
We have successfully done it for SQL Server 2016 and later as they support Decompress and Compress functions. Since, our end clients are on different databases ranging from SQL Server 2008 to SQL Server 2019, thus, we need to have a generic script which works for all the databases or at least a separate script, which works for version lower than 2016.