IIS7应用程序池标识登录到SQL Server [英] IIS7 Application Pool Identity To Log Into SQL Server
本文介绍了IIS7应用程序池标识登录到SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在IIS应用程序中使用SQL Server 2008数据库。当我使用SQL身份验证从ASP页面连接一切正常。我需要使用Windows身份验证来访问数据库,每个网站都有不同的Windows用户名。我找到的方法是更改连接到每个网站的应用程序池上的标识,但它对我不起作用(保持IUSER标识),我认为它们可能是更好的方法。任何帮助,将不胜感激。谢谢
解决方案
请按照以下文章。
1. Windows身份验证< windowsAuthentication> [ ^ ]。
2. 如何:使用Windows集成安全性访问SQL Server [ ^ ]。
3. 为ASP设置SQL Server 2008 IIS 7.0上的.NET网站 [ ^ ]。
I need to use an SQL Server 2008 database in an IIS application. When I use SQL Authentication to connect from an ASP page everything works. I need to use Windows Authentication to access the Database and each website would have a different Windows username. The method I found was to change the identify on the Application Pool connected to each website but it is not working for me (keeping the IUSER identify) and I am thinking their may be a better way. Any help would be appreciated. Thanks
解决方案
Follow the below articles.
1. Windows Authentication <windowsAuthentication>[^].
2. How to: Access SQL Server Using Windows Integrated Security[^].
3. Setting up SQL Server 2008 for an ASP.NET website on IIS 7.0[^].
这篇关于IIS7应用程序池标识登录到SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文