如何配置SQL Server以允许通过IIS进行访问 [英] How do I configure SQL Server to allow access via IIS

查看:564
本文介绍了如何配置SQL Server以允许通过IIS进行访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个将数据存储在本地SQL Server 2008数据库中的Web服务。如果我在我的帐户下运行Web服务,则Web服务可以成功访问数据库。但是,如果我使用DefaultAppPool(IUSR)帐户,则从Web服务访问数据库失败。

I have a web service that stores data in a local SQL Server 2008 database. If I run the web service under my account the web service can successfully access the database. However, if I use the DefaultAppPool (IUSR) account then accessing the database from the web service fails.

如何在SQL Server上设置安全性以允许访问特定的数据库通过IIS?

How do I set security on SQL Server to allow access to a specific database via IIS?

我得到的具体错误信息是:
用户IIS APPPOOL \DefaultAppPool登录失败

The specific error message I am getting is: Login failed for user 'IIS APPPOOL\DefaultAppPool'

推荐答案

你有两个选择(显然可能!):

You have two options (obvious maybe!):


  • 而不是使用Windows集成
    安全使用SQL身份验证
    而不是。

  • 如果您不能或不想,那么您需要
    来创建与该Windows帐户相关的SQL Server
    中的新用户。 / li>
  • 或者(第三个选项)您可以将网络服务更改为在您知道有效的帐户下运行。

这篇关于如何配置SQL Server以允许通过IIS进行访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆