2015-06-17 134 views
0

我有一個經典的ASP網站。當我在Windows 2008 R2服務器上本地運行該站點時,它完美地工作。當我從另一臺機器連接到該網站,並嘗試以服務頁面通過IIS 7.5,它失敗,此錯誤:在Windows Server 2008 R2上使用SQL Server 6.5運行ASP站點

Microsoft OLE DB Provider for SQL Server error '80004005'

,它是失敗的ASP該生產線是:

Set conSQL6 = Server.CreateObject("ADODB.Connection") 
conSQL6.Open strConSQL6 

當我在Win 2003服務器上運行這個相同的應用程序時,在服務器本地和遠程都沒有問題。

如何使這項工作任何想法,完全重新寫是不是一種選擇:)

+1

你認真使用SQL Server 6.5 ???您將被徹底重寫。 –

回答

1

PRB: Troubleshooting Error 80004005 "Login Failed" in ASP

Cause

There are two reasons why this error may occur:

  • Integrated security is turned on in the SQL Enterprise Manager, and the Microsoft Windows NT account that is being used has not been mapped to a SQL account.
  • The User ID in the connection string is invalid or blank.

RESOLUTION

To resolve this problem, ensure that the following conditions are met:

  • The Windows NT account is mapped to a SQL account.
  • The User ID in the connection string is valid and is not blank.
  • Set standard security in SQL Server Enterprise Manager. To implement SQL Server standard security, follow these steps:

    1. From SQL Enterprise Manager, right-click the SQL Server name that appears in the Server Manager window, and then click Properties. (For SQL Server version 6.5 click Configure).
    2. Click Security Options, and then click Standard and Windows. (For SQL Server version 6.5 click Standard).
  • The Password Synchronization option is turned off for that project if you are running under Microsoft Internet Information Server (IIS) 4.0.
相關問題