show all db msql code example
Example 1: show databases in sql server
SELECT * FROM SYS.DATABASES
Example 2: show databases in sql server
SELECT * FROM SYS.SYSDATABASES
Example 3: show sql server database
EXEC sp_databases
Example 4: show databases in sql server
SELECT name FROM master.SYS.DATABASES