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?
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass