Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
TSQL クエリでこれを行う方法を思い出せません。これはワンライナーで、DML を実行する前のテストに適していました。クエリは、SELECT IS_DBO() または SELECT IS(DBO) に似たものでした。
あなたはおそらくIS_MEMBER関数を探しています:
IS_MEMBER
SELECT IS_MEMBER('db_owner')