Don’t have permission to access SQL Server Express 2008?
Sounds like the account you are logging in as does not have the rights to perform these options. To give yourself these rights, you will need to log in as an administrator, or the SA account (if mixed mode is enabled).
When you're logged in as the administrator, then you should be able to assign yourself the appropriate privileges to be able to restore databases using your own user account.
The solution, that actually worked for me published by the author Blipsolt:
shut down SQL Server from services
-
open cmd window (as admin) and run single-user mode as local admin with this command
c:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\Binn\sqlservr.exe" -m -s SQLEXPRESS
open another cmd window (as admin)
-
open sqlcmd
sqlcmd -S .\SQLEXPRESS
-
Now add the sysadmin user:
sp_addsrvrolemember 'domain\user', 'sysadmin'
GO
Ctrl+C
the single-user mode from the first cmd window to kill SQL Server.Restart it from services the normal way.
Log into Management Studio and the user you created should be listed under logins with the credential of "sysadmin."