I'm not an ASP developer, so I lost a little.
I have the following data access code:
sSQL = "SELECT answer_id, company_name, old_access_company_name, answer, flag_asker_notified FROM Q01_ask_sheiiba_answer_company2 WHERE question_id="& sQuestion_id &" ORDER BY answer_id" rs.open sSQL, conn DO WHILE NOT rs.EOF Response.Write(rs.Fields("answer")) rs.MoveNext LOOP
I tested that the SQL query was built correctly, outputting it in response before it was called. It issues the following query:
SELECT answer_id, company_name, old_access_company_name, answer, flag_asker_notified FROM Q01_ask_sheiiba_answer_company2 WHERE question_id=988 ORDER BY answer_id
When I copy this exact query to sql management studio and run it, I get the expected results from 5 rows and each row containing data in each cell, BUT, when I run it through the specified code, I get the same 5 rows with the same cell data, EXCEPT for the answer column, which is empty!
What am I missing?
Thank you in advance
source share