to find the log name –
select name from sys.database_files where type = 1
to shrink to a specified target size –
DBCC SHRINKFILE (DataFile1, 7); –where 7 = 7MB
sql for everyone
to find the log name –
select name from sys.database_files where type = 1