__try{
rs = stmt->executeQuery();
for (int k = 1; k <= col; k++)
rs->setCharacterStreamMode(k, 10000);
while (rs != NULL && rs->next() ){
myFunctions.sqlLogEntry("Before for",0,5);
for (int i = 1; i <= col; i++){
char buffer[4096];
unsigned int length =0;
unsigned int size = 500;
Stream *stream = rs->getStream(i);
while (stream->status () == Stream::READY_FOR_READ)
{
length += stream->readBuffer(buffer, size);
}
CString tmp=(LPCSTR)buffer;
tmp=tmp.Left(length);
cout << tmp << endl;
myFunctions.sqlLogEntry("Value pushed "+tmp,0,5);
vecReturn.push_back(tmp);
isOk=TRUE;
}//for
myFunctions.sqlLogEntry("After for",0,5);
}//while
}__except(errorOutput(GetExceptionCode(), GetExceptionInformation(), rs)){
cout << "FEHLER" << endl;
return FALSE;
}