总是出现如下代码
ADODB.Connection
错误 '800a0e78'
�����ر�ʱ��������������
D:\PAICLOUD\WEBHOME\JIAENHOSPITAL_COM\HTDOCS\ADMIN\../KS_Cls/Kesion.CommonCls.asp���� 1638
红色的是第1638行。
'添加自关联数据库
Sub FileAssociation(ByVal ChannelID,ByVal InfoID,ByVal Content,ByVal Flag)
If Flag<>0 Then
Conn.Execute("Delete From KS_UploadFiles Where IsAnnex<>1 and ChannelID=" & ChannelID & " and InfoID=" & InfoID)
End If
If ChannelID<>0 And ChannelID<1000 and channelid<>7 Then
Dim Node
LoadFieldToXml()
For Each Node In Application(SiteSN & "_FeildXml").DocumentElement.SelectNodes("row[@channelid=" & ChannelID &" and @fieldtype=9 or @fieldtype=10]")
Content=Content & Request(Node.SelectSingleNode("@fieldname").text)
Next
End If
Dim FileLists,I,FileArr
FileLists=GetFilesList(ChannelID,Content)
If Not IsNul(FileLists) Then
FileArr=Split(FileLists,"|")
For I=0 To Ubound(FileArr)
Dim strFile:strFile=trim(FileArr(i))
If right("00000000"&lcase(strfile),4)=".asp" or right("00000000"&lcase(strfile),5)=".aspx" or right("00000000"&lcase(strfile),4)=".asa" or right("00000000"&lcase(strfile),4)=".php" or right("00000000"&lcase(strfile),4)=".jsp" or len(strfile)<10 then
Else
Conn.Execute("Insert Into [KS_UploadFiles](ChannelID,InfoID,ClassID,FileName,IsAnnex,UserName,AddDate) values(" &ChannelID &"," & InfoID &",0,'" & replace(FileArr(i),"'","''") & "',0,'" & C("UserName") & "'," & SQLNowString&")")
End If
Next
End If
End Sub