Object Ownership Script

  • Does anyone have a t-sql script that will give me a list of all objects in the database (tables, stored procs, etc..) and who owns the object?

     

    Thanks,

    Michael

  • SELECT SU.Name + '.' + SO.Name

    FROM SysObjects SO

        INNER JOIN SysUsers SU

        ON SO.uid = SU.uid

     

    Use a WHERE clause to limit type of object on xtype. 

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • Thanks.

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

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