Andrew Bancroft 5/1/2015

SQL Sever Synonyms, Entity Framework, and Integrated Security

Read Original

This article addresses a specific issue where using SQL Server Synonyms with Entity Framework and Integrated Security (domain service account) causes a 'Login failed for user NT AUTHORITY\ANONYMOUS LOGON' error. The author explains that while SQL Server authentication works fine, Integrated Security fails when accessing objects mapped to Synonyms. The solution is to replace the Synonym with a View that selects from the remote database object, keeping the same name. The article also covers granting appropriate permissions to the service account. This is a technical troubleshooting guide for .NET developers using Entity Framework with SQL Server.

SQL Sever Synonyms, Entity Framework, and Integrated Security

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser