Looked at this for a few minutes, and it's been a long time since I've worked with classic asp, but I did see three things to look at:
- Do you need to
Open
the connection before callingobjCommandSec.Execute
? - Can you try writing out a string literal inside the loop, that does not depend at all on the recordset... only that you are in fact looping through the code, so see if records are coming back to the recordset.
- Have you checked the html source, to see if perhaps malformed html is hiding your results? I remember this happening a few times with tables in classic asp loops, where data would be hidden somehow between two rows, or a closing table tag in the wrong place would end the table, and later rows would not be visible.