Programming
Asp recordcount -1 나올 때
fridayss
2010. 7. 23. 20:53
mysql 이나 oracle의
mysql_num_rows or oci_num_row 가 asp에선 뭔지 몰라 겨우 찾아냈더니
결과값이 자꾸 -1 이 나와 엄청 삽질 -_-
:
Set Rs = Server.CreateObject("ADODB.RecordSet")Rs.CursorType = 3
Rs.CursorLocation = 3
Rs.LockType = 3
Rs.Open SQL, DbCon
RsCount = Rs.RecordCount
count하기전에
Rs.CursorType = 3
Rs.CursorLocation = 3
Rs.LockType = 3
Rs.CursorLocation = 3
Rs.LockType = 3
지정하니 바로 됨 -_-