MS SQL users sometimes run into “SQL Error 262” while creating a new database, logging into SQL Server Management Studio, etc.
Here at Bobcares, we routinely see & resolve MS SQL errors such as this as part of our MS SQL Support services.
Today we will go through the top causes for this error and how to fix it.
An Overview
What is SQL Server Error 262
SQL Server Error 262 is permission-related. It occurs when a login attempts an action without the required server or database permissions. The exact error message depends on the operation being performed, such as creating a database or viewing an execution plan. In most cases, granting the appropriate permission or server role resolves the issue.
Common scenarios where SQL Server Error 262 occurs
| Scenario | Cause |
|---|---|
| Creating a new database | The login does not have permission to create databases. |
| Logging in to SQL Server Management Studio | The account lacks the required server permissions. |
| Viewing an execution plan | The user does not have the SHOWPLAN permission. |
| Connecting through a third-party application | The SQL Server login or instance permissions are insufficient. |

The solution depends on the operation that triggers the error. First, identify where the error occurs, then apply the appropriate fix below.
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.
Now let’s see how to implement these fixes.
Grant Database Access to a single user
One of the scenarios where this SQL 262 error appears is when the user tries to check the execution plan using CTRL + M.
An execution plan is used to check how the query will behave without having to execute it.
So, to include the execution plan in the query, we can allow SHOWPLAN access to the user.
Allowing a particular user to grant the SHOWPLAN access using the commands shown helps in fixing SQL error 262.
USE DatabaseName
GO
GRANT SHOWPLAN TO UserName
GO
This helps fix the error.
Grant the SHOWPLAN permission only to users who need to view estimated or actual execution plans. This follows SQL Server’s principle of granting only the permissions required for a task.
Check SQL Server Express permissions
If the error appears while connecting to a local SQL Server Express instance from another application, verify that the login has the required permissions on the SQL Server instance. If needed, use an administrator account to grant the appropriate server role or permissions before trying the connection again.
Add Windows user to sysadmin role.
One of the reasons this 262 error appears is not having an account available on SQL Server with the sysadmin role.
Add a Windows user to the sysadmin role
If the login requires administrative access, an existing SQL Server administrator can assign the sysadmin fixed server role.
- Open SQL Server Management Studio using an account with administrative privileges.
- Connect to the SQL Server instance.
- Expand Security, then Logins.
- Right-click the required login and select Properties.
- Open Server Roles.
- Select sysadmin and click OK.
Grant the sysadmin role only when full administrative access is required. For routine tasks, assigning only the necessary permissions is the recommended approach.
Quick checks before applying a fix
- Confirm that you’re connected to the correct SQL Server instance.
- Verify that you’re using the intended SQL Server login.
- Check whether the login has the required server or database permissions.
- Use an administrator account if permission changes are needed.
[Need assistance in fixing MS SQL errors? We are available 24×7.]
Conclusion
In short, MS SQL error 262 may occur in different scenarios like creating a new database in SQL Server Management Studio, connecting to a local SQL Server Express Instance from a third-party application, etc. Today, we discussed in detail the possible ways by which we can handle such scenarios to fix this error.

Hello, I have tried following these instructions to fix SQL Server Error 262 CREATE DATABASE Permission Denied, with no success. I am wondering if some of the information may be outdated or if program paths could be labeled differently on different devices.
I only just downloaded this program and the required services and followed the basic installation wizards.
Any assistance would be appreciated.
Thanks!
Hello Karma,
Please contact our support team via live chat(click on the icon at right-bottom).