Find All the Database names of the server

M Jugnu 41 Reputation points
2020-10-29T03:26:37.84+00:00

Hi, How I can find all the database names of any server?

Developer technologies | Transact-SQL
Developer technologies | Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
0 comments No comments
{count} votes

Answer accepted by question author
  1. EchoLiu-MSFT 14,626 Reputation points
    2020-10-29T03:30:42.487+00:00

    Hi @M Jugnu ,

    Please refer to:

        SELECT * FROM sysdatabases  
    

    35894-image.png

    SELECT name FROM sysdatabases  
    

    35858-image.png

    If you have any question, please feel free to let me know.
    If the response is helpful, please click "Accept Answer" and upvote it.

    Regards
    Echo


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Hot issues October https://learn.microsoft.com/en-us/answers/questions/142427/users-always-get-connection-timeout-problem-when-u.html

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Olaf Helper 47,586 Reputation points
    2020-10-30T08:28:59.107+00:00
    0 comments No comments

Your answer

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