2011-10-06 7 views
3

을 heres 내 ASP : 내가 캔트개체가이 속성 또는 메서드를 지원하지 않습니다 : 'rsSQL.Execute'

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

:

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) 

이제 문제는 다음과 같은 오류를 던지고 있다는 점이다 이유 알아 내기

+0

안녕하세요, SQL 주입 취약점 –

답변

2

쿼리에서 Execute 메서드를 수행 할 수 없으면 대신 연결에서 수행해야합니다.

+0

그래, 알아 냈어. 감사. – scarhand

관련 문제