change data base owener to in db owner mssql sever code example Example: To change the database owner in SQL server Use OnlineRestaurant exec sp_changedbowner 'sa'