List of databases in Microsoft SQL Server
by Taavi Rammar

In order to get list or databases in mssql server, do
select CATALOG_NAME from INFORMATION_SCHEMA.SCHEMATA

Copyright by techTips