I have a SQL Server 2017 database which contains some CLR stored procedures. When trying to call those CLR SP's, I get a "login failed" error back from the CLR SP.
My user is connected and works fine - it seems that the CLR SP is coded to run as another specific user.
I don't have access to the underlying code for the CLR SP's. Is there any way for me to change which user it's executing as?
EXECUTE AS 'some_user'
option? **3)**When you say that your "user" is connected and working, what do you mean? Are you testing a different User (i.e. not a Login) viaEXECUTE AS USER = 'username';
statement? Please update the question with the answers. Thanks.EXECUTE AS
, and lastly, I am referring to my Windows account which has sysadmin rights on the box and which I am using to execute the SQL SP which in turn calls the CLR SP.