Sebastian Trüg wrote:
Hello,

me again. This time I would like to know if there is a clean way to determine the type of query result from the results columns (without fetching a row)?

At the moment I am using a rather hacky way: I check if the result has only one column named "__ASK_RETVAL". If that is the case I treat it as an ask/boolean result. But then I need to find out if it is a graph result and checking for name "callret-0" is just ridiculous. So I thought if it would be feasible to check if the returned data is a BLOB. Is that possible and using which odbc call?

Hi,

ODBC has SQLDescribeCol() for the very purpose:

http://msdn.microsoft.com/en-us/library/ms716289(VS.85).aspx

HTH,

~Tim
--
Tim Haynes
Product Development Consultant
OpenLink Software
<http://www.openlinksw.com/>
<http://twitter.com/openlink>

Reply via email to