How to get a list all databases?
Ask by Amit Singh
Updated 17 Sep 2020
for example
SELECT name, database_id FROM sys.databases