[求助]关于RecordCount使用,为什么会得-1?
我在用Recordcount返回记录条数时为什么会不对,当我的记录里有一条记录时Recordcount返回的却是-1。请各位指点一下程序如下:(不完整)uname=request.form("uname")
pwd=request.form("pwd")
set conn=server.createobject("adodb.connection")
conn.open "driver={SQL Server};Server=(local);Database=fei;UID=sa;PWD=000000"
stext = "select * from fei3 where 用户名='" &uname& "'"
set rs = conn.execute(stext)
response.write rs.recordcount
结果为什么会是-1