This RESTORE statement is invalid in the current context. The 'Recover Data Only' option is only defined for secondary filegroups ...

This RESTORE statement is invalid in the current context. The 'Recover Data Only' option is only defined for secondary filegroups when the database is in an online state. When the database is in an offline state filegroups cannot be specified.