show databases in sql server
snippet in sql

show databases in sql server

user8142

SELECT * FROM SYS.DATABASES

get database list in sql server

user4956

SELECT name FROM master.dbo.sysdatabases

show databases in sql server

user8791

SELECT name FROM master.SYS.DATABASES

show databases in sql server

user1054

EXEC SP_DATABASES

show databases in sql server

user6210

SELECT * FROM SYS.SYSDATABASES