Unable to restore database in ssms

Ahuja, Muskan 0 Reputation points
2024-12-05T10:23:45.48+00:00

Getting below error while i am trying to restore a database in SSMS.

TITLE: Microsoft SQL Server Management Studio


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


ADDITIONAL INFORMATION:

CREATE DATABASE permission denied in database 'master'.

RESTORE HEADERONLY is terminating abnormally. (Microsoft SQL Server, Error: 262)

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


BUTTONS:

OK


SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,494 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 120.1K Reputation points MVP
    2024-12-05T21:57:56.55+00:00

    As the message says, you don't have permission. Why you expect to have permission, I don't know, because you did not tell us.

    You will need to talk to your DBA or similar to get the permissions needed, or ask that person to restore the database for you.

    By the way, SSMS is only a tool which you use to talk to SQL Server. The error message comes from SQL Server itself.

    0 comments No comments

  2. ZoeHui-MSFT 41,296 Reputation points
    2024-12-06T06:35:00.69+00:00

    Hi @Ahuja, Muskan

    CREATE DATABASE permission denied in database 'master'.

    The user must be a member of dbcreator server role for user to have enough permissions to create a database.

    Server-level roles

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.