get database list in sql server
snippet in sql

get database list in sql server

user3874

SELECT name FROM master.dbo.sysdatabases