开发者

How to get Column name in Classic Asp using RecordSet?

开发者 https://www.devze.com 2022-12-13 07:04 出处:网络
I am displaying data in a web report from table using Recordset. This works fine upto 5000 records but fails while more then 5000 records.

I am displaying data in a web report from table using Recordset.

This works fine upto 5000 records but fails while more then 5000 records.

Recordset.Fields.Count gives Zero (0).

Please let suggest me any alternative开发者_如何学C.

Thank you Sugam


Are you certain that the recordset is actually returning anything in the case of more than 5K records?

response.write Recordset.state

Here are the possible values for state. 0 Object is closed
1 Object is open
2 Object is connecting
4 Object is executing
8 Object is fetching

Also, make sure you don't have the page silently swallowing errors. My gut says there is an error in the query that returns 5K rows and that it has nothing to do with the rowcount. A good way to check this is to run the 5K query directly in the back-end DB and rule that out first.

0

精彩评论

暂无评论...
验证码 换一张
取 消