try this,
use master
backup database <databasename> to <devicename>
backup log <databasename> to <device name>
backup log <databasename> with truncate_only
use <databasename>
dbcc shrinkdatabase(<databasename>,<size in mb>, TRUNCATEONLY)
dbcc shrinkfile(<transaction log file...