<legend id='7MGyX'><style id='7MGyX'><dir id='7MGyX'><q id='7MGyX'></q></dir></style></legend>

    <tfoot id='7MGyX'></tfoot>

  1. <i id='7MGyX'><tr id='7MGyX'><dt id='7MGyX'><q id='7MGyX'><span id='7MGyX'><b id='7MGyX'><form id='7MGyX'><ins id='7MGyX'></ins><ul id='7MGyX'></ul><sub id='7MGyX'></sub></form><legend id='7MGyX'></legend><bdo id='7MGyX'><pre id='7MGyX'><center id='7MGyX'></center></pre></bdo></b><th id='7MGyX'></th></span></q></dt></tr></i><div id='7MGyX'><tfoot id='7MGyX'></tfoot><dl id='7MGyX'><fieldset id='7MGyX'></fieldset></dl></div>

    <small id='7MGyX'></small><noframes id='7MGyX'>

      • <bdo id='7MGyX'></bdo><ul id='7MGyX'></ul>
    1. 连接远程SQL Server数据库的经典ASP问题

      Classic ASP problem connecting to remote SQL Server database(连接远程SQL Server数据库的经典ASP问题)

      <legend id='SmmFt'><style id='SmmFt'><dir id='SmmFt'><q id='SmmFt'></q></dir></style></legend>
        <tfoot id='SmmFt'></tfoot>

        <small id='SmmFt'></small><noframes id='SmmFt'>

      1. <i id='SmmFt'><tr id='SmmFt'><dt id='SmmFt'><q id='SmmFt'><span id='SmmFt'><b id='SmmFt'><form id='SmmFt'><ins id='SmmFt'></ins><ul id='SmmFt'></ul><sub id='SmmFt'></sub></form><legend id='SmmFt'></legend><bdo id='SmmFt'><pre id='SmmFt'><center id='SmmFt'></center></pre></bdo></b><th id='SmmFt'></th></span></q></dt></tr></i><div id='SmmFt'><tfoot id='SmmFt'></tfoot><dl id='SmmFt'><fieldset id='SmmFt'></fieldset></dl></div>
          <tbody id='SmmFt'></tbody>

                <bdo id='SmmFt'></bdo><ul id='SmmFt'></ul>
                本文介绍了连接远程SQL Server数据库的经典ASP问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个经典的 ASP 应用程序,我正在尝试连接到另一台服务器上的 SQL Server 2008 数据库.ASP 应用程序由 Windows Server 2008 上的 IIS7 提供服务.

                我已将网站的应用程序池更改为在特定的 Windows 帐户下运行,我已验证可以访问远程服务器上的数据库.

                但是,当我在浏览器中运行该应用程序时,出现此错误:

                <前>应用程序错误编号:-2147217843 (0x80040E4D)来源:Microsoft OLE DB Provider for SQL Server描述:用户NT AUTHORITYANONYMOUS LOGON"登录失败.

                为什么它尝试使用 NT AUTHORITYANONYMOUS LOGON 进行连接?应用池标识是否不适用于经典 ASP 代码?我怎样才能以特定用户的身份进行连接?

                编辑

                这是我使用的连接字符串:

                <块引用>

                Provider=SQLOLEDB.1;Data Source=myDbServer;Initial Catalog=myDatabase;Integrated Security=SSPI

                解决方案

                对于使用经典 ASP 的应用程序池标识的站点,您需要更改用于匿名身份验证的凭据.默认情况下,站点将设置为使用特定用户,即 IUSR.

                从您站点的 IIS 区域中选择身份验证,然后选择匿名身份验证,然后选择编辑.从特定用户更改为应用程序池标识.

                建议使用 Windows 身份验证(集成安全性)而不是 SQL 身份验证,这样您的配置文件中就没有凭据,这样如果这些文件遭到破坏,您就不会失去对凭据的控制.

                I have a classic ASP app that I am trying to connect to a SQL Server 2008 database on a different server. The ASP app is being served from IIS7 on Windows Server 2008.

                I have changed the web site's application pool to run under a specific windows account, that I have verified has access to the database on the remote server.

                However, when I run the app in the browser, I get this error:

                Application Error 
                Number: -2147217843 (0x80040E4D)
                Source: Microsoft OLE DB Provider for SQL Server
                Description: Login failed for user 'NT AUTHORITYANONYMOUS LOGON'. 
                

                Why is it trying to connect using NT AUTHORITYANONYMOUS LOGON? Does the App pool identity not apply to classic ASP code? How can I make this connect as a specific user?

                EDIT

                Here is the connection string I am using:

                Provider=SQLOLEDB.1;Data Source=myDbServer;Initial Catalog=myDatabase;Integrated Security=SSPI

                解决方案

                For a site to use the application pool identity for classic ASP, you need to change the credentials used for Anonymous Authentication. By default, the site will be set to use a specific user, namely IUSR.

                Select Authentication from the IIS area of your site, then select Anonymous Authentication followed by Edit. Change from Specific user to Application pool identity.

                It's advisable to use Windows authentication (integrated security) over SQL authentication so that you don't have credentials in your config files so that if those files are compromised, you don't lose control of the credentials.

                这篇关于连接远程SQL Server数据库的经典ASP问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                SQL query to group by day(按天分组的 SQL 查询)
                Include missing months in Group By query(在 Group By 查询中包含缺失的月份)
                sql group by versus distinct(sql group by 与不同)
                How to return a incremental group number per group in SQL(如何在SQL中返回每个组的增量组号)
                Count number of records returned by group by(统计分组返回的记录数)
                SQL GROUP BY CASE statement with aggregate function(带聚合函数的 SQL GROUP BY CASE 语句)
                • <tfoot id='a0doU'></tfoot>
                  <i id='a0doU'><tr id='a0doU'><dt id='a0doU'><q id='a0doU'><span id='a0doU'><b id='a0doU'><form id='a0doU'><ins id='a0doU'></ins><ul id='a0doU'></ul><sub id='a0doU'></sub></form><legend id='a0doU'></legend><bdo id='a0doU'><pre id='a0doU'><center id='a0doU'></center></pre></bdo></b><th id='a0doU'></th></span></q></dt></tr></i><div id='a0doU'><tfoot id='a0doU'></tfoot><dl id='a0doU'><fieldset id='a0doU'></fieldset></dl></div>

                      <bdo id='a0doU'></bdo><ul id='a0doU'></ul>

                            <tbody id='a0doU'></tbody>

                          <small id='a0doU'></small><noframes id='a0doU'>

                        1. <legend id='a0doU'><style id='a0doU'><dir id='a0doU'><q id='a0doU'></q></dir></style></legend>