Changing the Ownership on Database Object

I have to move databases between servers recently, doing a backup and restore. I had some issues arise from improper ownership of tables and store procedures in Microsoft SQL Server (MSSQL). I fixed the issue quickly through the following query:

sp_changeobjectowner ‘object’, ‘new_owner’

Leave a reply