Returns an object’s owner ID.
object_owner_id(object_id[, database_id])
is the ID of the object you are investigating.
is the ID of the database in which the object resides.
Selects 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.