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
Alternatively you could execute this query when connected to the sysmaster database:
select * from sysdatabases
1 Comment
mor222
How to get a list of tables for a specific database when connected using sysmaster user?
More to the point (years after the question was posed):
select name from sysmaster:sysdatabases;
1 Comment
Luis Vazquez
This is the most precise answer if you want to get the databases listing and works with the most current Informix version (14.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
Anyname Donotcare
thanks alot,, i wanna to add this link::informix.com.ua/articles/sysmast/sysmast.htm
Luis Vazquez
This is not working with Informix version 14.1