SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Receiving Error 15404 (Error code 0x5) When Attempting `Execute As` Statement


Receiving Error 15404 (Error code 0x5) When Attempting `Execute As` Statement

Author
Message
adam.fortuno
adam.fortuno
SSC-Enthusiastic
SSC-Enthusiastic (177 reputation)SSC-Enthusiastic (177 reputation)SSC-Enthusiastic (177 reputation)SSC-Enthusiastic (177 reputation)SSC-Enthusiastic (177 reputation)SSC-Enthusiastic (177 reputation)SSC-Enthusiastic (177 reputation)SSC-Enthusiastic (177 reputation)

Group: General Forum Members
Points: 177 Visits: 85
I have a service account `foo` that my web site uses to interact with the (SQL Server 2005) database. The site is having an issue running a procedure that I can run just fine. I attempted to run the routine under the service account's context using the `EXECUTE AS USER` construct; however, SQL Server throws an exception when I attempt to run the statement. The exception reads as follows:

Msg 15404, Level 16, State 19, Line 1
Could not obtain information about Windows NT group/user 'CORPORATE\foo', error code 0x5.


Here is the statement I am executing:

EXECUTE AS USER = 'CORPORATE\foo';

I confirmed the login exists in the `sys.database_principals` view, and I can see expected results for the login when I use `sp_HelpUser` and `sp_HelpLogins`.

I am stumped. Any ideas?
John H Marsh
John H Marsh
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6803 Visits: 1470
Hello,

Did you spot this MS KB article already?

http://support.microsoft.com/kb/834124/en-us

Regards,

John Marsh

www.sql.lu
SQL Server Luxembourg User Group
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search