Re: SQL statement contain " character
- From: Dave Albiston <mail@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 09:38:53 +0000
The statement causing problems contains other fields - including a time field which, of course, includes a colon.
I think the ADO component can be confused into thinking there is a parameter when there is none. Some statements worked fine. In other cases, I re-arranged the statement and it worked.
Setting ParamCheck to false avoids the issue.
Dave
Brian Bushay TeamB wrote:
I just tested this dynamically assembled SQL against the Orders table in the Northwind sample database. Tell me what is different with what you are doing?
CommandText := 'Update orders set shipaddress = '+ QuotedStr('This is a test " string with doublequote')+' where OrderID = 10248';
-- Brian Bushay (TeamB) Bbushay@xxxxxxxxx
.
- References:
- SQL statement contain " character
- From: Dave Albiston
- Re: SQL statement contain " character
- From: Viatcheslav V. Vassiliev
- Re: SQL statement contain " character
- From: Dave Albiston
- Re: SQL statement contain " character
- From: Brian Bushay TeamB
- Re: SQL statement contain " character
- From: Dave Albiston
- Re: SQL statement contain " character
- From: Brian Bushay TeamB
- SQL statement contain " character
- Prev by Date: Re: Could not find installable ISAM
- Next by Date: Re: Why all the connections?
- Previous by thread: Re: SQL statement contain " character
- Next by thread: Ado inside dll ?
- Index(es):