Hi,
I have a very strange problem with recordcount return -1.
DB Server : SQL Server 2000
Language: ASP(VB)
'------ Code Start -------------
sql1="select * from [Mapping]"
rs1.open sql1,conn, 3,3,1
response.write rs1.recordcount
However if I change to a different table
'------ Code Start -------------
sql1="select * from Timesheet"
rs1.open sql1,conn, 3,3,1
response.write rs1.recordcount
It returns a valid number.
I am pretty sure there are many rows in the table. I have even tried to change the name of the table, and a few other tables. I found a few other tables return -1 as well. I have no idea what's going on. All these table were created in a similar manner.
What have I done wrong??
thanks
Brian
I have a very strange problem with recordcount return -1.
DB Server : SQL Server 2000
Language: ASP(VB)
'------ Code Start -------------
sql1="select * from [Mapping]"
rs1.open sql1,conn, 3,3,1
response.write rs1.recordcount
However if I change to a different table
'------ Code Start -------------
sql1="select * from Timesheet"
rs1.open sql1,conn, 3,3,1
response.write rs1.recordcount
It returns a valid number.
I am pretty sure there are many rows in the table. I have even tried to change the name of the table, and a few other tables. I found a few other tables return -1 as well. I have no idea what's going on. All these table were created in a similar manner.
What have I done wrong??
thanks
Brian