Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I installed SQL server 2008 R2.and write query "CREATE DATABASE TEST" to create database.SQL gives me following error:
CREATE DATABASE permission denied in database 'master'(Microsoft SQL server,Error:262)
Posted
Updated 27-Nov-13 21:53pm
v3
Comments
Maciej Los 28-Nov-13 3:54am    
Do you have db_owner permissions?
Yogi ,Pune 28-Nov-13 4:02am    
Is their is any setting to get db_owner permission?
Maciej Los 28-Nov-13 4:54am    
Please, see my answer.

You need to check your installation and (depending on how you log in to your SQL instance) set the user permissions correctly.
Have a look at this: http://www.websense.com/content/support/library/web/v75/triton_web_help/permissions_3aSQL%20Server.aspx[^] - it should help.
 
Share this answer
 
In my opinion, you have got a problem with permissions[^].

For further information, please read it:
Principals (Database engine)[^]
Authorization and Permissions in SQL Server[^]
 
Share this answer
 
Try reinstalling the SqlServer and following necessary steps.
 
Share this answer
 
Comments
Maciej Los 28-Nov-13 4:52am    
What? It sounds like OP does not have permission to create new database.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900