sql command to show list of database code example Example: show sql server database EXEC sp_databases