show sql server database code example
Example 1: show databases in sql server
SELECT * FROM SYS.DATABASES
Example 2: get database list in sql server
SELECT name FROM master.dbo.sysdatabases
Example 3: show databases in sql server
SELECT * FROM SYS.SYSDATABASES
Example 4: show sql server database
EXEC sp_databases
Example 5: show databases in sql server
SELECT name FROM master.SYS.DATABASES