SQL statement contain " character
- From: Dave Albiston <mail@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Jan 2006 12:06:52 +0000
My application stores text which often contains the " character for inches. I am dynamically constructing a statement like:
update Tablename set TextField = 'Could not save with " in text', .. .. where TableID = ..
The statement is accepted by SQL Server 2000 using Query Analyzer but fails when I execute it with a TADOQuery in D2005. The error message is:
'Parameter object is improperly defined. Inconsistent or incomplete information was provided.'
If I remove the " character it works. It also works with the character if I set ParamCheck to false.
Is there an explanation or is this a bug?
Dave .
- Follow-Ups:
- Re: SQL statement contain " character
- From: Viatcheslav V. Vassiliev
- Re: SQL statement contain " character
- From: Bill Hannan
- Re: SQL statement contain " character
- Prev by Date: Re: TADOQuery.Open() & Sybase
- Next by Date: Re: Ado inside dll ?
- Previous by thread: Why all the connections?
- Next by thread: Re: SQL statement contain " character
- Index(es):
Relevant Pages
|