How to delete SQL Server database from Azure Portal

CKP 1 Reputation point
2023-11-19T19:33:28.0466667+00:00

Hi There,

I have created a MS SQL Server under my account in Azure Portal which I want to delete it now but when I try to delete the confirm delete button does not enable even after typing the database name correctly. Any idea how can I drop the MS SQL database via Azure Portal under all resources.

Thanks

Ram

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,786 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RahulRandive 9,666 Reputation points
    2023-11-19T20:51:57.32+00:00

    Hi @CKP

    You would like to delete database from Azure SQL server.

    As you mentioned one option is to delete from the portal else you can also perform through SQL Server management studio.

    To delete a database

    1.     In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.

    2.     Expand Databases, right-click the database to delete, and then select Delete.

    3.     Confirm the correct database is selected, and then select OK.

    or Using Transact-SQL

    For more information, see DROP DATABASE (Transact-SQL).

    To delete a database

    1.     Connect to the Database Engine.

    2.     From the Standard bar, select New Query.

    3.     Copy and paste the following example into the query window and select Execute. This example removes the Sales and NewSales databases.

    USE master ;

    GO

    DROP DATABASE Sales, NewSales ;

    GO

    Reference document- https://learn.microsoft.com/en-us/sql/relational-databases/databases/delete-a-database?view=sql-server-ver16

    Thank you!

    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.