Update table names with owner

  • Hi,

    I'm looking to do the following but not sure which system table contains the owner name.

    Update owner.tablename to dbo.tablename_owner

    Ive got this...

    --Update sysobjects

    set sysobjects.name=sysobjects.name + sysusers.name

    where sysobjects.name<>1

    and then update to change all owners to dbo

    Any help appreciated!

    ¤ §unshine ¤

  • sp_changeobjectowner

    you would not update system tables.

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

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