with Microsoft SQL Server we can list all the database names with System Procedures
sp_databases
or
EXEC sp_helpdb

And in MySQL, its much more simple :
show databases;

VN:F [1.1.6_502]
Rating: 5.0/5 (1 vote cast)
Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • LinkedIn
  • Live
  • MySpace
  • StumbleUpon
  • Technorati

Related posts:

  1. What is the maximum size MSSQL and MySQL can support?
  2. Get all table names from Microsoft Access (MDB) database file
  3. Write your first SQL Server CLR Stored Procedure
  4. MSSQL: Query to display objects in a database
  5. Simple Paging feature with PHP and MySQL