Check out example codes for "get database list in sql server". It will help you in understanding the concepts better.

Code Example 1

SELECT name FROM master.dbo.sysdatabases

Learn ReactJs, React Native from akashmittal.com