• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 614
  • Last Modified:

SQL 2005 Express permissions

I have a SQL 2005 Express database installed on my PC. I need to create a new DB but get message CREATE DATABASE permission denied in database master (Error 262)

The service is running under Local System User

Can anyone help?
0
HKFuey
Asked:
HKFuey
  • 2
  • 2
1 Solution
 
Kevin CrossChief Technology OfficerCommented:
How are you connecting to SQL?  In other words, are you using Windows or SQL authentication?  If the former, did you add your account as an administrator?  If the latter (or answer to last question is no), try logging in with the sa (database owner) account.
0
 
DBAduck - Ben MillerPrincipal ConsultantCommented:
Typically the default permissions is that the Local Administrators group has sysadmin access.  If you are not in the local admins group on the windows machine, then you will not have access to be sysadmin.  By default I believe that all users (non-admins) are users and can query databases, but cannot create.
0
 
HKFueyAuthor Commented:
I cannot log in as sa, the user is disabled. When I try enabling I get a permission error.

All I need is an SQL Express database for my application, should I try reinstalling SQL?
0
 
Kevin CrossChief Technology OfficerCommented:
Did you check on whether the user you are logging in with is in the Local Administrators group?  The fact that you are getting errors whenever doing anything administrative suggests that you are not in the database owner role.  Therefore, you need to find an account that is ...  

If you do re-install, there is a step that asks if you want to add the current user as an admin.
0
 
HKFueyAuthor Commented:
Thanks for the help (Decided to re install, looks OK now)
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now