What should I do if I receive this - create database permission denied in database master?
I am making a database in sql server and it shows an error that "CREATE DATABASE permission denied in database 'master'" I am using the administrator log in itself. What do I need to do? Please suggest a fix!
In case of - create database permission denied in database master - The user must be a member of the dbcreator server role for the user to have enough permissions to create a database. You can execute the following statement to make a user member of the dbcreator server role.
EXEC master..sp_addsrvrolemember @loginame = N'Shubhankar', @rolename = N'dbcreator'
GO Or you Can/Should use
ALTER SERVER ROLE [dbcreator] ADD MEMBER [Shubhankar];
GO
Members of sysadmin role are by default members of dbcreator server role therefore they can create databases too.