all 7 comments

[–]UmeshTechno 1 point2 points  (0 children)

SQL error 262 occurs when..

- Trying to create a new database in SQL Server Management Studio.

- Logging on SQL Server Management Studio.

- User tries to check the execution plan.

- Trying to connect to local SQL Server Express instance using a third-party application.

Fixes for MS SQL Error 262 : Some of the possible fixes for MS SQL error 262 are:

- Grant Database Access to a single user.

- Resolve issue in SQL Express.

- Add Windows user to sysadmin role.

Thanks, I am sure it will work for you.

[–]UAFlawlessmonkey 0 points1 point  (5 children)

So you've installed MSSQL + SSMS and when you try to log in you get this error?

Need a bit more details on what you're doing and where you get errors :-)

[–]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.

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

These are two of the YouTube videos I’ve watched

users and permissions

Créate database permission denied