Check out example codes for "To change the database owner in SQL server". It will help you in understanding the concepts better.

Code Example 1

Use OnlineRestaurant
exec sp_changedbowner 'sa'

Learn ReactJs, React Native from akashmittal.com