문제

Can we limit the number of users (For ex. 5) for a particular login Or Is there anyway to restrict the particular User using POLICY MANAGEMENT in SQL SERVER?

Please kindly help me to implement this.

도움이 되었습니까?

해결책

Don't think it could be done with PBM, but you can solve this by creating a logon trigger, and in the trigger do a quick query on sys.dm_exec_sessions, counting sessions with the original_login_name same as suser_sname().

Beware that an error in login trigger could prevent all logins and render the instance unaccessible. To fix this, start the service in single user mode (-m).

Hope it helps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top