I have a Windows 2003 Server setup in Virtual PC. I loaded it with VS2005, SQL Server etc., and the size of the VHD file was 15 GB. Over the months, I have tried various things including setting up replication etc., and now the size is 39 GB.
I have removed all of the unwanted DB's, installation etc., and now my C drive on my VPC reads as 15 GB, however, the VHD file still reads as 39 GB and shows it has 24 GB free space.
Question - How can I ensure that the VHD file size is only 15 GB and not 39 GB?