How to retrieve all objects a user owns?

  • Many thanks in advance.

  • USE database_name


    SELECT *

    FROM sys.objects

    WHERE USER_NAME(OBJECTPROPERTY(OBJECT_ID, 'ownerid')) = 'the_owner_name' ;


    There are no special teachers of virtue, because virtue is taught by the whole community.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply