Article View: borland.public.vdbase.data.sql
Article #510Re: query using '?' in string parameter
From: Karen Elmquist
Date: Thu, 03 Sep 1998 00:00
Date: Thu, 03 Sep 1998 00:00
42 lines
2991 bytes
2991 bytes
thank you for your response!! I've contacted Titan about the problem and they told me ask the delphi people. BTW, sorry if I posted on the wrong NG....I thought this was a delphi/database NG. karen Steve Koterski wrote in message <35f0c7c5.4815045@forums.inprise.com>... > >It works in Delphi alone (Delphi 4, BDE 5). So I doubt this is a Delphi >problem or a problem in Delphi only. > >Local SQL follows SQL-92 in that the question mark (?) is not defined as an >SQL symbol or operator. However, I believe Microsoft Access does use this >as a wildcard character (single-character replacement, with the asterisk as >multiple character replacement). This deviation from standard SQL causes a >number of compatibility problems and makes many SQL statements unusable >under any database system except Access. > >When an SQL statement such as this is executed against anything except >local tables (Paradox, dBASE, FoxPro), the SQL should be pass-through. That >is, as far as the BDE is concerned the SQL statement is merely a string to >be passed from the front-end application to the database back-end system. >The BDE neither evaluates nor executes such pass-through SQL statements. >The database back-end is where the statement is parsed and then executed. > >I suspect that the problem is a result of parsing confusion, either on the >part of the Titan engine or the Access engine itself. I would suggest >contacting Titan to see whether this is a known issue with them. > >Alternately, use some sort of spy program to see the background SQL being >passed from the BDE to Titan. If you have the Client/server version of >Delphi, such an SQL spy program is provided (definitely in Delphi 3, and I >believe also in Delphi 2): SQL Monitor. Otherwise, get a third-party >utility that does this. Such a utility would allow you to visually verify >the efficacy of the SQL statement as it is received by Titan. > >////////////////////////////////////////////////////////////////////////// >Steve Koterski "The knowledge of the world is only to >Technical Publications be acquired in the world, and not in a >INPRISE Corporation closet." >http://www.inprise.com/delphi -- Earl of Chesterfield (1694-1773)
Technical Details
Message-ID:
<6smole$jh21@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6sjidu$eq98@forums.borland.com> <6sjugt$fq718@forums.borland.com> <6sk55h$fq825@forums.borland.com> <35f9b1c0.20420930@forums.inprise.com> <6sm73k$ih56@forums.borland.com> <35f0c7c5.4815045@forums.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,87f82f8ff4ab83fc X-Google-Attributes: gidff5a1,public From: "Karen Elmquist" <kelmquis@wisdomwareNOSPAM.com> Subject: Re: query using '?' in string parameter Date: 1998/09/03 Message-ID: <6smole$jh21@forums.borland.com> X-Deja-AN: 387570835 References: <6sjidu$eq98@forums.borland.com> <6sjugt$fq718@forums.borland.com> <6sk55h$fq825@forums.borland.com> <35f9b1c0.20420930@forums.inprise.com> <6sm73k$ih56@forums.borland.com> <35f0c7c5.4815045@forums.inprise.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.vdbase.data.sql