关于asp.net:如何为IIS App Pool帐户授予数据库权限?

How can I Grant permissions to a database for the IIS App Pool account?

如何授予从IIS登录和访问AdventureWorks数据库的权限?

我正在Visual Studio 2010中开发一个应用程序(Silverlight托管在IIS中),我收到一个错误消息,说它无法打开AdventureWorks数据库,因为用户IIS AppPoolasp.net 4.0登录失败。


使用SQL Server Management Studio。

  • 在SQL Server中为IIS应用程序池您的应用程序池名称创建Windows登录
  • 将此登录名添加到数据库
  • 根据需要授予数据库中的帐户权限。