Attach SQL database = access denied

More of a reminder for myself, as this has happened multiple times. If you try to attach to a database and you get an ‘access denied’ error, be sure to run SSMS as an Administrator. Some posts will also mention that the SQL Server service account needs Modify access to the file/folder. But the former ‘fix’ did the trick this time.