My db does not show up in my Azure Portal

Andy Gonzalez 0 Reputation points
2024-10-21T21:36:40.5433333+00:00

I renamed my database from XX to YY from my SSMS, I can access it from SSMS, but I don't see it from my Azure portal. What should I do?

Azure SQL Database
{count} votes

3 answers

Sort by: Most helpful
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2024-10-21T23:21:59.5933333+00:00

    Try to rename it again using Query Editor in Azure Portal.

    ALTER DATABASE [XX] MODIFY NAME = [YY];
    

    Do you see any active connections to the database? Use the following query to verify and kill the connections you see.

    SELECT session_id, host_name, program_name
    FROM sys.dm_exec_sessions
    WHERE database_id = DB_ID('YY');
    
    
    

    Open Azure Portal on a private window in your web browser, search for the Azure SQL logical server and make a click on the Databases option on the vertical menu.

    User's image

    0 comments No comments

  2. Andy Gonzalez 0 Reputation points
    2024-10-23T15:51:17.09+00:00

    Thank you !

    0 comments No comments

  3. Andy Gonzalez 0 Reputation points
    2024-10-23T15:55:56.1866667+00:00

    I appreciate your help. I did the following to the database to solve this issue:

    1. Exported it,
    2. Dropped it,
    3. Imported it.

    Thank you again.


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.