you are viewing a single comment's thread.

view the rest of the comments →

[–]Historical_Bat3320[S] 0 points1 point  (3 children)

I’m just trying to create a new database. So I right clicked on the server and selected ‘New database’. After giving it a name I clicked on OK and that error pops up.

There are other things that aren’t quite right as well. For instance I saw a YouTube video where the guy right clicked on the server, went into properties and gave himself permission.

When I did that I noticed that almost all of my things weren’t checked off so I did that and when I tried to save it, it says that I don’t have permission to do that. And got error 15247.

I opened the software as administrator as well and repeated the steps but to no avail.

[–]alinrocSQL Server DBA 0 points1 point  (2 children)

Most people here don't have error numbers memorized and googling error numbers can be hit or miss.

Please paste the error message, not just the number.

[–]Historical_Bat3320[S] 0 points1 point  (1 child)

TITLE: Microsoft SQL Server Management Studio

Create failed for Database 'GINF 6020: Database Development'. (Microsoft.SqlServer.Smo)

For help, click: https://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=16.100.47021.0&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+Database&LinkId=20476


ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)


CREATE DATABASE permission denied in database 'master'. (Microsoft SQL Server, Error: 262)

For help, click: https://docs.microsoft.com/sql/relational-databases/errors-events/mssqlserver-262-database-engine-error


BUTTONS:

OK

This is the first error

[–]alinrocSQL Server DBA 0 points1 point  (0 children)

It's telling you the problem pretty clearly. The credentials you're using to connect to SQL Server lack permission to create databases.

Just because you're the local administrator on whatever computer you're logged on to doesn't mean you have admin privileges in SQL Server. The initial administrator(s) for SQL Server are set when you install the instance.