This is not work in SQL 2008, as DUMP is discontinued. Otherwise we have to use BACKUP.
To shrink the log file in SQL 2008,
- Back up the database in “SIMPLE” recovery mode.
- then run above line no 6.
Refer this (http://msdn.microsoft.com/en-us/library/ms144262.aspx) for discontinued functionalities in SQL 2008.