M
Mark Tait
Hi - I want to query a database to return just one record:
..select id, parentid, question, answer from tblquestions where id =
@id)..
read the fields returned from that record into variables:
id=rs("id").value
parentid=rs(parentid").value
...
..
..and close the connection.
I don't want to populate datasets etc - I've heard about the
executescalar and executeonerecordonly(or similar) - but haven't seen
any examples - can anyone please procvide an example of this for me?
Many thanks for any help,
Mark Tait
(e-mail address removed)
www.fixitks.co.uk
..select id, parentid, question, answer from tblquestions where id =
@id)..
read the fields returned from that record into variables:
id=rs("id").value
parentid=rs(parentid").value
...
..
..and close the connection.
I don't want to populate datasets etc - I've heard about the
executescalar and executeonerecordonly(or similar) - but haven't seen
any examples - can anyone please procvide an example of this for me?
Many thanks for any help,
Mark Tait
(e-mail address removed)
www.fixitks.co.uk