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 (3 votes 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. Free database comparison tool
  5. MSSQL: Query to display objects in a database