Subject | Re: CR/LF in SQL |
---|---|
Author | peter_jacobi.rm |
Post date | 2004-06-22T12:20:14Z |
Hi Thomas,
"Thomas Steinmaurer" <ts@i...> wrote:
my reply?):
IMHO the problem only arises in environments where it is
difficult to send the actual 0x0d 0x0a bytes to the DBMS,
like ISQL.
When using DSQL from C (or Delphi, or Python, ...), it's
perfectly O.K. to embed the 0x0d 0x0a in the DSQL string
sent to the server. And for this task you can use the
escaping mechanism provided by the programming language
of your choice.
Regards,
Peter Jacobi
"Thomas Steinmaurer" <ts@i...> wrote:
> > My problem is that I do not know how CR/LF is represented inCan you please correct me, if I'm wrong (did you see
> > SQL.
>
> As Helen said, the general solution is using an UDF.
my reply?):
IMHO the problem only arises in environments where it is
difficult to send the actual 0x0d 0x0a bytes to the DBMS,
like ISQL.
When using DSQL from C (or Delphi, or Python, ...), it's
perfectly O.K. to embed the 0x0d 0x0a in the DSQL string
sent to the server. And for this task you can use the
escaping mechanism provided by the programming language
of your choice.
Regards,
Peter Jacobi