How to change Filegroup's ownership (URGENT)

  • It’s my lead requirement. My TL has given me list of databases, filegroups for which I have to change the owner from user name to sa.

    can anybody tellme how to check and change owner of filegroup.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Could it be that you are mixing between file groups and schemas? File groups have no owner.

    Adi

    --------------------------------------------------------------
    To know how to ask questions and increase the chances of getting asnwers:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    For better answers on performance questions, click on the following...
    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

  • Ok my understanding is that the filegroups are "owned" by the database owner. And therefore you'd need to call the sp_changedbowner procedure. But wait about for one of the experts reply

  • Filegroups don't have owners. Databases have owners. Schemas have owners. Objects have owners.

    Sounds like he wants the database owners to be changed. Can you confirm that?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

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

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