• Great job Solomon. Many advanced topics not found anywhere else.

    Thus, I've not found a solution to my problem.

    I would like to manage windows local groups on server through SQLCLR. I deploy my signed assembly using asymmetric key, login with this key, setting UNSAFE...

    I added the .net assemblies : System.DirectoryServices.

    My C# code works perfectly in console logged as administrator.

    The same code in stored procedures, with impersonnation, always give me "Access Denied"

    Any ideas to solve that?

    Thanks.