sql server show current database code example
Example 1: show databases in sql server
SELECT * FROM SYS.SYSDATABASES
Example 2: show databases in sql server
SELECT name FROM master.SYS.DATABASES
SELECT * FROM SYS.SYSDATABASES
SELECT name FROM master.SYS.DATABASES