adodb.recordset在IIS6中工作,但在IIS7中没有

时间:2016-10-15 11:27:59

标签: sql-server asp-classic iis-7 iis-6 adodb

好吧,我将一个应用程序(经典ASP)从IIS 6服务器移动到IIS 7服务器,现在遇到了麻烦。我已经非常努力地解决它,但没有。

当我尝试运行它时,我得到:错误' 80004005'

/main.asp,第251行

第251行是" RS.Open SQL,cnpath"在下面的代码中。

cnpath="driver={SQL Server}; server=myserver; database=recept; Trusted connection=no; user id=weblogin; pwd=*****;"

' Create and open ADO recordset
Set RS = Server.CreateObject("ADODB.Recordset")
RS.CursorLocation = 3 ' adUseClient
RS.Open SQL,cnpath

If RS.EOF Then
    RS.Close
    set rs=nothing
' Clean up
'Do the no results HTML here
%><P style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: x-small; Font-Weight: bold; color: #000000;"><%
   Response.Write "Didn't find it."
%> </P><%
    Response.end
' Done
End If

它在IIS6机器上完美运行。

上面的代码当然只是应用程序的一小部分。

有什么想法吗?

感谢。

// Tarzzz

0 个答案:

没有答案