To cleanup the log you need to do the following.
Code:
Backup Log DB_NAME with truncate_only
Then you need to Shrink the log using
Code:
DBCC ShrinkFile(LOGICAL_NAME or FILE_ID,TARGET_SIZE)
The log file (.ldf) can be shrunk only to the extent of the existence of inactive transactions and not less than that.
And regarding the data file (.mdf), when you do a shrink and it doesn't come down in size, then you need to clean up the data that are older and not essentially required to exist in the DB. For this you should have had a maintenance plan planned earlier. If not you got to find out the tables on which you can run your DELETE statements and cleanup, so that there is some free space available in the data file for it to be shrunk to a lower size from 25 GB.
Hope that clarifies.
Cheers.
_________________________
- Vijay G
Strive for Perfection