inserting "\" & chr$(10) in MSSQL
From: Dom (Dom_at_discussions.microsoft.com)
Date: 09/10/04
- Next message: Xaver Hinterhuber: "Re: Speed of ADO"
- Previous message: beginthreadex: "Re: Memory Leak in ADODB::Recordset15:Open"
- Next in thread: Victor Koch: "Re: inserting "\" & chr$(10) in MSSQL"
- Reply: Victor Koch: "Re: inserting "\" & chr$(10) in MSSQL"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 10 Sep 2004 07:15:03 -0700
I try to insert a string out of vb 6.0 which contains a backslash, followed
by chr$(10) (linefeed).
if I insert for example strTest = "bla\" & chr$(10) mssql writes only "bla"
to
the table.
If I insert "bla\\" & chr$(10) & chr$(10) mssql writes "bla\" & chr$(10) to
the table.
Why ??? Do I really have to filter the combination of "\" & chr$(10) and
replace it
with "\\" & chr$(10) & chr$(10) before every update and insert ?
enormous performance loss..... ?
can anyone tell me, why MSSQL behaves like this if I insert this two
characters and
if there are any other combinations which i need to be aware of ?
- Next message: Xaver Hinterhuber: "Re: Speed of ADO"
- Previous message: beginthreadex: "Re: Memory Leak in ADODB::Recordset15:Open"
- Next in thread: Victor Koch: "Re: inserting "\" & chr$(10) in MSSQL"
- Reply: Victor Koch: "Re: inserting "\" & chr$(10) in MSSQL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|