SQL Server Windows authentication uses application’s process identity or thread identity to connect. So for an ASP.NET application, which identity will be used to connect
- Current User Identity
- Application Pool Identity
- Process Identity
or another identity?!
It really depends of your IIS Website configuration.
By default it will use the application pool’s identity if you disabled the anonymous access. But if you configure your application with
Impersonation=true, then it will use your user’s identity as described:See all details in this MSDN article.