How to check the value of database property TRUSTWORTHY?

  • Didn't figour out how to check the value of database property TRUSTWORTHY ? Anyone could light me up ? Thx.

    ddfg

  • i dont know T-SQL command for that.... in SSMS

    1) right click on database you want to look on

    2) select options and look for trustworthy in the list of DB options...

  • select name,is_trustworthy_on from sys.databases

    MJ

  • Dear

    Thanx for reply,What is meaning of trustworthy databases...

    Thanks

  • check this:

    ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_4deptrbl/html/64b2a53d-4416-4a19-acc0-664a61b45348.htm

    ---------------------------------------------------
    "Thare are only 10 types of people in the world:
    Those who understand binary, and those who don't."

  • SELECT [name], is_trustworthy_on

    FROM master.sys.databases

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

  • imrankhanm wrote:

    By enabling cross-database ownership chaining or by designating a database as trusted by the instance using the TRUSTWORTHY attribute, a trust relationship between databases can be created. The sys. databases catalogue view's is_trustworthy_on column shows whether a database's TRUSTWORTHY property is set.

    Without defining what is meant by a "trust relationship", a lot of people can make some pretty big mistakes.  To be honest, this sounds a whole lot like a too-short answer generated by ChatGPT. 😉

    Here's the link for all the nasty stuff you have to watch for with TRUSTWORTHY.

    https://learn.microsoft.com/en-us/sql/relational-databases/security/trustworthy-database-property

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • This was removed by the editor as SPAM

Viewing 10 posts - 1 through 9 (of 9 total)

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