show sql server database
snippet in sql

show databases in sql server

user6295

SELECT * FROM SYS.DATABASES

get database list in sql server

user6644

SELECT name FROM master.dbo.sysdatabases

show databases in sql server

user4186

SELECT name FROM master.SYS.DATABASES

show databases in sql server

user3021

SELECT * FROM SYS.SYSDATABASES

show sql server database

user9462

EXEC sp_databases