Resolving CREATE DATABASE Permission denied in database 'master' error on Vista and SQL Express

Have you encountered the error 'CREATE DATABASE Permission denied in database 'master'' even though you are logged into Windows Vista with administrator privileges.

Reason for the error : Windows Vista users that are members of the Windows Administrators group are not automatically granted permission to connect to SQL Server, and they are not automatically granted administrative privileges.

Resolution: Grant rights to the administrator. Follow these steps:

Step 1: Go to Start > All Programs > Microsoft SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration.

Step 2: Click on 'Add New Administrator'.

Step 3: In the 'SQL Server User Provisioning on Vista' dialog box, look out for the 'Member of the SqlServer SysAdmin role ' in the 'Available Privileges' box. Transfer it to the 'Privileges that will be granted to' box. Click Ok.

Note: You will be able to see 'Add New Administrator' in the Configuration tool only if you have logged in as an administrator

56 comments:

  1. Its working, thanks for the post.

    ReplyDelete
  2. Thanks! This really helped.

    ReplyDelete
  3. awesome. Thanks for the post!~

    ReplyDelete
  4. Thanks a lot. I guessed that this was the problem, but did not know where to tell SQL server to use vitsa admin account. I wonder why Microsoft does not fix it.

    Thanks once again.

    Regards
    Syed Iqbal Simnani

    ReplyDelete
  5. Thanks for the detailed post. Works great!

    ReplyDelete
  6. Thanks, helped a lot

    ReplyDelete
  7. Thanks a lot for your valuable steps...

    ReplyDelete
  8. Thanks.It helped me.

    ReplyDelete
  9. thank you so much it helped me a lot..

    ReplyDelete
  10. Thanks alot..its working..

    ReplyDelete
  11. awesome!!!
    thanx a lot sir

    ReplyDelete
  12. I tried alot to solve.. but ur post helped me alot keep goingg

    ReplyDelete
  13. Thanks its really helpful. Thanks for this post

    ReplyDelete
  14. Thanks for your help solved it with the

    In the system.web section added

    identity impersonate="true" userName="username here" password="pw here"

    Thanks

    ReplyDelete
  15. best post!
    really really helped!
    thanks

    ReplyDelete
  16. thank you..very much....


    u help me a lot....

    ReplyDelete
  17. Hi, All

    I dont seen in Add New Administrator button.

    so what should i do ??
    I m using vindow's vista..
    i did all these things written on this blog..
    plz help me ..


    Thanks

    ReplyDelete
  18. I installed the sql mangment studio 2008. the sqlservr.exe engine started as a network service. the studio starts as a user program, so it is not allowed to create a new database.
    how to resolve this issue without the need to write a service that executes the sql management studio program.
    David

    ReplyDelete
  19. Thanks a lot..its working now..

    ReplyDelete
  20. Thanks,its working

    ReplyDelete
  21. 'Member of the SqlServer SysAdmin role ' in the 'Available Privileges' box is missing

    ReplyDelete
  22. Hmmm - I don't have an "Add new administrator option".

    I get two links

    "Surface Area Configuration for Services and Connections"

    and

    "Surface area configuration for features"

    Neither of these options contain the "Add new administrator" feature.

    Anyone have any ideas?

    The machine is a Windows Vista install, and I'm using SQL Express.

    ReplyDelete
  23. Just to add to that last post - I am logged in as an Administrator.

    SQL server is a strange beast. You'd think that having installed it an an Administrator, I'd then be able to go in as that very same user and determine how I want to control access to it.

    ReplyDelete
  24. thanks everything is now working...

    ReplyDelete
  25. Thanks very much ^________________^

    ReplyDelete
  26. Thank you so much. I have been trying to attach instnwnd.sql for over q week now, getting this message. So glad I finally ran accros your post.

    ReplyDelete
  27. i use windows 7 .......... pls help me i have also this error.

    ReplyDelete
  28. Hi,think you've made some truly interesting points. Not too many people would actually think about this the way you just did. I'm really impressed that there's so much about this subject that's been uncovered and you did it so well, with so much class. Good one you, man! Really great stuff here.

    ReplyDelete
  29. This comment has been removed by the author.

    ReplyDelete
  30. having the same problem using windows 7. pls help.

    ReplyDelete
  31. Thank you for your post sir. It really helped me. Two thumbs UP !!

    ReplyDelete
  32. I was facing the same problem and was looking for a permanent solution.But i couldn't fond one.After reaching here.I found the solution.Now everything is just perfect.And my database is working fine.

    ReplyDelete
  33. Good work!Thanks a lot.Its working now

    ReplyDelete
  34. thanks for the information ;) for almost a semester i can't use my sql server thanks for the help! GOdbless!;)

    ReplyDelete
  35. This makes me want to cry. it still isn't working

    ReplyDelete
  36. SO HERE ARE MY QUESTIONS :

    1. Am I allowed to run my program using user "TestUser" since SQL is installed using "Glen" windows user?

    2. Do I need to add access rights to "TestUser" to allow the user to have CREATE rights? (Note : for security reason, I can add other access rights except Administrator)

    ReplyDelete
  37. When connceting to sql server 2005 a network-related error has occuring .how to solve this

    ReplyDelete
  38. Thank you very much! Workly on SQL Server 2008 too!

    ReplyDelete
  39. I'm using SQL 2014 and I still needed to go into my SQL 2005 and modify this setting...Thanks!

    ReplyDelete
  40. Thank you very much! Very very helpful!

    ReplyDelete