Problem: An error occurred when attaching the database(s). Click the hyperlink in the Message column for details. sql server management studio 2012.
Solution: Try running SQL Server Management Studio as administrator
#sqlServerManagementStudio
#AnErrorOccurred