Check out example codes for "how to set default database name in sql server". It will help you in understanding the concepts better.

Code Example 1

Exec sp_defaultdb @loginame='login', @defdb='master'

Learn ReactJs, React Native from akashmittal.com