태그 보관물: database-administration

database-administration

db_datareader / db_datawriter 스키마의 소유권 할당을 취소하는 방법은 무엇입니까? 내장 스키마가 함께 사용됩니다). 내 질문은 :

내가 의미 에 SQL Server 로그인을 할당

  • db_datareader
  • db_datawriter

데이터베이스 역할 . 그러나 배가 아프고 피곤한 순간 우연히 그 사용자에게 스키마 소유권을 부여합니다.

여기에 이미지 설명을 입력하십시오

사용자가 두 내장 스키마 를 “소유” 한다는 개념적인 의미 를 지금은 무시 합니다. 그리고 사용자가 두 스키마를 소유하고 있다면 문제발생 하더라도 잠시 무시하십시오 (예 : 사용자를 삭제하려면 내장 스키마가 함께 사용됩니다).

내 질문은 : 어떻게 취소합니까?


나는 무작위로 내 키보드의 키를 공격, 그것은 나왔다 :

SCHEMA :: [db_datareader]에서 [db_datareader]로 변경 승인F5

그러나 그것은 아무것도하지 않았다. 이제 전문가와 상담 할 차례입니다.

Microsoft SQL Server 2005-9.00.5057.00 (Intel X86) 2011 년 3 월 25 일 13:50:04 저작권 (c) 1988-2005 Microsoft Corporation Standard Edition



답변

alter authorization on schema::[db_datareader] to [dbo]
alter authorization on schema::[db_datareader] to [db_datareader]

alter authorization on schema::[db_datawriter] to [dbo]
alter authorization on schema::[db_datawriter] to [db_datawriter]

답변

다음을 수행하면 작업이 쉬워집니다. SA 계정으로 SQL Server를 열고 새 쿼리와 과거의 쿼리를 만들고 실행을 클릭하십시오! 끝난.

alter authorization on schema::[db_datareader] to [dbo]
alter authorization on schema::[db_datareader] to [db_datareader]
alter authorization on schema::[db_datawriter] to [dbo]
alter authorization on schema::[db_datawriter] to [db_datawriter]
alter authorization on schema::[db_securityadmin] to [dbo]
alter authorization on schema::[db_securityadmin] to [db_securityadmin]
alter authorization on schema::[db_accessadmin] to [dbo]
alter authorization on schema::[db_accessadmin] to [db_accessadmin]
alter authorization on schema::[db_backupoperator] to [dbo]
alter authorization on schema::[db_backupoperator] to [db_backupoperator]
alter authorization on schema::[db_ddladmin] to [dbo]
alter authorization on schema::[db_ddladmin] to [db_ddladmin]
alter authorization on schema::[db_owner] to [dbo]
alter authorization on schema::[db_owner] to [db_owner]

답변