Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. change owner of objects

change owner of objects

Scheduled Pinned Locked Moved Database
databasequestioncsharpsharepointhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amin_behzadi
    wrote on last edited by
    #1

    Hi dears, How can I change owner of all tables and stored procedures in my database? I know with executing stored procedure sp_changeobjectowner I can do it , but I don`t want to execute it for each table and sp, Thx for your help

    www.behzadi.net

    modified on Wednesday, January 02, 2008 5:20:30 AM

    D P 2 Replies Last reply
    0
    • A amin_behzadi

      Hi dears, How can I change owner of all tables and stored procedures in my database? I know with executing stored procedure sp_changeobjectowner I can do it , but I don`t want to execute it for each table and sp, Thx for your help

      www.behzadi.net

      modified on Wednesday, January 02, 2008 5:20:30 AM

      D Offline
      D Offline
      DotNetXenon
      wrote on last edited by
      #2

      Do you want to change the owner of the database? You can change using sp_changedbowner

      ------------------------------------------------------------ "The only true wisdom is in knowing you know nothing." --Socrates

      1 Reply Last reply
      0
      • A amin_behzadi

        Hi dears, How can I change owner of all tables and stored procedures in my database? I know with executing stored procedure sp_changeobjectowner I can do it , but I don`t want to execute it for each table and sp, Thx for your help

        www.behzadi.net

        modified on Wednesday, January 02, 2008 5:20:30 AM

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Does your database have any data in it? If not, you could always just generate the create script for your database and then change the owners using a global search and replace. There are other ways, but this is the easiest.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups