【问题标题】:Object doesn't support this property or method: 'rsSQL.Execute'对象不支持此属性或方法:“rsSQL.Execute”
【发布时间】:2011-10-06 00:23:48
【问题描述】:

这是我的 ASP:

sql="select * from empPac where empIdent='" & empIdent & "' and catalogIdent=" & catItem
Set rsSQL = Server.CreateObject ("ADODB.Recordset")
rsSQL.Open sql,strConnect

sql="update empPac set sizeChartIdent=" & newSize & " where empPacIdent=" & rsSQL("empPacIdent")
rsSQL.Execute(sql)

现在的问题是它抛出以下错误:

Object doesn't support this property or method: 'rsSQL.Execute'

我不知道为什么

【问题讨论】:

  • 你好,sql注入漏洞

标签: sql asp-classic ado


【解决方案1】:

您不能对查询执行Execute 方法,而必须在连接上执行。

set conn=Server.CreateObject("ADODB.Connection")
conn.open strConnect

conn.Execute(sql)

【讨论】:

    猜你喜欢
    • 2013-10-05
    • 1970-01-01
    • 2015-07-02
    • 2019-04-09
    • 2013-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多