Returns an object’s owner ID.
object_owner_id(object_id[, database_id])
ID of the object you are investigating.
ID of the database in which the object resides.
Select the owner’s ID for an object with an ID of 1, in the database with the ID of 1 (the master database):
select object_owner_id(1,1)
Any user can execute object_owner_id