// Run the stored procedure var myStproc = myConn.storedProc("sp_employees"); // Store the result set var myResultSet = myStproc.resultSet(); // Writes all column names stored in the result set to the page. for(var i = 0; i <= myResultSet.columns(); i++){ write(myResultSet.columnName(i)); } // Close the result set myResultSet.close();