How to map a user who is sysadmin to a non dbo database schema. updating sys.database_principals?

  • Hi All,

    Is there any way to update sys.database_principlas tables. Cuz it gives Ad hoc updates to system catalogs are not allowed error. My aim is just to map a user who's sysadmin to a nondbo schema

    dac does not work by the way

    thank you

  • Updates to system tables are not permitted. Besides you shouldn't even be considering changing the system tables. Back in SQL 2000 when that was possible, all sorts of messes were made by doing so.

    This looks like it should be a continuation of your previous thread on the same topic, so please rather continue the existing thread at http://qa.sqlservercentral.com/Forums/Topic1534372-2799-1.aspx rather than replying here.

    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
  • I was gonna post something about system tables updates then somehow i end up asking the same question. my bad. I will consider your warning next time

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

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