list the databases on the curretn server sql code example Example: get database list in sql server SELECT name FROM master.dbo.sysdatabases