Hi,
Is there a way to display the column names of a recordset in asp javascript?
I have a recordset that is being used for reporting purposes and what is returned in sql is exactly what i want to have displayed.
An example of what is returned:
Sorry if the formatting is a bit rubbish but that gives you an idea of what i have so far.
When looping through the recordset using a while loop and the property .EOF and the method .MoveNext() i can't get it to also display the column names.
The sql column names are dynamically written so i cant just write the columns into the table myself.
Is there a way of also showing the column names of a recordset?
Is there a way to display the column names of a recordset in asp javascript?
I have a recordset that is being used for reporting purposes and what is returned in sql is exactly what i want to have displayed.
An example of what is returned:
Code:
complaintType Branch1 Branch2 Branch3
complaintType1 0 0 2
complaintType2 0 0 0
complaintType3 0 0 1
complaintType4 0 0 0
complaintType5 0 0 0
Sorry if the formatting is a bit rubbish but that gives you an idea of what i have so far.
When looping through the recordset using a while loop and the property .EOF and the method .MoveNext() i can't get it to also display the column names.
The sql column names are dynamically written so i cant just write the columns into the table myself.
Is there a way of also showing the column names of a recordset?