CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Posts
    49

    changing Dadabase Owner in Sql2000

    hi there ..

    in Sql 2000
    how to change the owner of the DB after it is created


    thanks..

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: changing Dadabase Owner in Sql2000

    You can use sp_changedbowner stored procedure to change the owner of the database.
    Code:
    EXEC sp_changedbowner 'NEWUSER'
    Remember the account under which this command will be executed should be member of the sysadmin group.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured