This error was just typographic. Of course I was using SELECT in the program. But letting out the semicolon doesn't changes the situation. Is it possible, that SELECT cannot handle records which are containing BLOBS?