 |
|
ADODB.Recordset error Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. |
|
 |
|
|
 |
 |
|
นี่คือerorr ที่เกิดขึ้นกับผม
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
<%
'รับข้อมูลจากฟอร์ม
st_id=Request.Form("st_code")
st_name=Request.Form("st_name")
st_surname=Request.Form("st_surname")
st_class=Request.Form("st_class")
st_password=Request.Form("st_password")
Set rs=Server.CreateObject("ADODB.Recordset")
sql="insert into tbstudent (student_id,name,surname,student_class,student_password) values ('"& st_id &"','"& st_name &"','"& st_surname &"','"& st_class &"','"& st_password &"')"
rs.Open sql,Conn,1,3
%>
ปัญหาของผมคือมัน error แม้ผมลองเขียนsql ให้ผิดsyntax มันก็ไม่ฟ้องในline ของsql ผมจึงสงสัยว่าเป็นที่ recordset ผมต้องคุณสมบัติของฐานข้อมูลหรือไม่
Tag : - - - -
|
|
 |
 |
 |
 |
Date :
15 มี.ค. 2548 09:17:26 |
By :
tong |
View :
4011 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
กรณีก็เคยเจอ ลองตรวจดูsyntax ในส่วนของการ include file นะครับลองไล่ดูดีๆ
|
 |
 |
 |
 |
Date :
15 มี.ค. 2548 10:07:21 |
By :
xmen |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โปรแกรมมบอกว่าจำนวนอากิวเมนผิดพลาดครับ ลอง Response.write(sql)
เมือ่ได้ค่าแล้วนำไป รันบนตัว DBMS
|
 |
 |
 |
 |
Date :
16 มี.ค. 2548 10:16:04 |
By :
@W_IN |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|