The code generator could generate a static character string for the C code which contains the text of the SQL. Easy - peasy!