Skip to Content

List all databases


How can we get all databases running on any machine?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2008 at 01:02 PM


    If you are on SQL Server you can use



    select name from sys.databases



    Add a comment
    10|10000 characters needed characters exceeded

    • thanks for the reply ayyapparaj

      plz give some hints on the following scenario.

      I have two MaxDB instance on one machine. I want a dynpro to do backup/restore of any database instance. On the way, I thought of it to be a generic one so that if we specify any host name in the landscape, it would list all the databases(MaxDB) and we can choose among which one backed up/restored.

      That is need to list all databases on a particular machine. And please help me on Backup & Restore operations.

      thanks in anticipation


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.