Compact and repair database is an MS Access feature, not a SQL Server one. It works on Access databases.
Can you be a little clearer about what you have (SQL Server or Access), what exactly is wrong, what the exact states things are in and all relevant errors?
Also, you're using a pre-release version of SQL Server 2014?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability