#define SQL_TEXT Latin_Text
#include<sqltypes_td.h>
#include<string.h>
void xsp_getqryband ( SQL_TEXT *QBandBuf, char sqlstate[6] )
{
int QBandLen;
FNC_GetQueryBand(QBandBuf, FNC_MAXQUERYBANDSIZE, &QBandLen);
strcpy(sqlstate, "00000"); // returns exception type
return ;
}