5

I want to know if there is any way to list (get) all the database names on Informix. I need a proper query or stored procedure to do that.

3 Answers 3

7

Alternatively you could execute this query when connected to the sysmaster database:

select * from sysdatabases 
Sign up to request clarification or add additional context in comments.

1 Comment

How to get a list of tables for a specific database when connected using sysmaster user?
6

More to the point (years after the question was posed):

select name from sysmaster:sysdatabases;

1 Comment

This is the most precise answer if you want to get the databases listing and works with the most current Informix version (14.1).
1

According to the documentation, the command to get a list of the databases on the server you are connected to is simply:

show databases

2 Comments

thanks alot,, i wanna to add this link::informix.com.ua/articles/sysmast/sysmast.htm
This is not working with Informix version 14.1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.