SQL Server record set exportation to CSV file using Classic ASP

Job ID: 35022831

Budget: $30 – $250 USD

Need to create a single Classic ASP page to retrieve data, from SQL Server record set, and generate an output CSV file !

SQL Server connection already working and CSV already venerares, but an error occurs at the end.

Attached file shows initial steps. No thrid party accepted. No privilegies changing accepted. Java Script can be used.