Re: ADO exception with character combination inside string...
- From: Bo Berglund <bo.berglund@xxxxxxxxx>
- Date: Thu, 21 Sep 2006 19:07:29 +0200
On 21 Sep 2006 07:28:33 -0700, "Bill Todd" <no@xxxxxx> wrote:
Enclose TNC:\CHARLIE in single quotes. Any database that follows the
SQL standard will assume that a string enclosed in double quotes is a
quoted identifier (table name, field name, etc.) not a string literal.
The string being sent as SQL is composed like this:
SQL := 'UPDATE Categories SET [Description] = ''' + edData.Text + '''
WHERE CategoryID = 4';
As you can see the actual description text entered via the edData
control *is* enclosed in single quotes, but the text entered inside
the edData is what will contain the text
set file = "TNC:\CHARLIE.D"
The whole idea is that we need to save the double quotes inside the
database and this works fine from VisualBasic, from Query Analyzer and
from within Delphi using TADOConnection.Execute(), but not if the
TADOQuery is used. However, a solution has been found to switch off
the parameter extraction function of that component that is switched
ON by default..
.
- Follow-Ups:
- Re: ADO exception with character combination inside string...
- From: Kevin Frevert
- Re: ADO exception with character combination inside string...
- References:
- ADO exception with character combination inside string...
- From: Bo Berglund
- Re: ADO exception with character combination inside string...
- From: Bo Berglund
- Re: ADO exception with character combination inside string...
- From: Brian Bushay TeamB
- Re: ADO exception with character combination inside string...
- From: Bo Berglund
- Re: ADO exception with character combination inside string...
- From: Bill Todd
- ADO exception with character combination inside string...
- Prev by Date: Re: ADO exception with character combination inside string...
- Next by Date: Re: ADO exception with character combination inside string...
- Previous by thread: Re: ADO exception with character combination inside string...
- Next by thread: Re: ADO exception with character combination inside string...
- Index(es):
Relevant Pages
|