I can't view or delete a azure sql database that costs me hundreds of dollars a month

Scott Hatcher 0 Reputation points
2025-04-06T17:15:28.5333333+00:00

I have a database "## Diogenes_db_2024-08-20T08-54Z" which looks like an artifact of something in Azure that I can't touch. My production database is "Diogenes_db_2024-08-20T08-54Z". I have been charged hundreds of dollars a month and I can't access/delete it through the portal or cli. I've opened a support ticket with billing and they say I need someone on the technical side to support. Please help.

User's image

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. TP 124.7K Reputation points Volunteer Moderator
    2025-04-06T19:03:38.0866667+00:00

    Hi Scott,

    You can use SQL Server Management Studio (SSMS) to delete the database. For example, connect to your Azure SQL Server using SSMS, click New Query, enter command similar to below, and click Execute

    DROP DATABASE [## Diogenes_db_2024-08-20T08-54Z]
    
    

    User's image

    WARNING—The above command deletes a database, so it is critical that you enter the correct database name and are certain you do not need it.

    You may need to add a firewall rule to your Azure SQL server allowing your client PC's public IP so that you can connect using SSMS. You can do this in the portal by navigating to your SQL Server -- Security -- Networking blade.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


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.