Article View: borland.public.cppbuilder.database.multi-tier
Article #44Re: Strange Semi-Colon in SQL
From: Curt
Date: Tue, 02 Mar 2004 08:10
Date: Tue, 02 Mar 2004 08:10
32 lines
1859 bytes
1859 bytes
Wow! just found out that I had been terminating the SQL command text with a semi-colon. "Curt" <a@aol.com> wrote in message news:40443491$1@newsgroups.borland.com... > I am trying to set up a very simple test application to fetch data from a > MySQL database and edit the fetched records in a TDBGrid. I get the message > 'You have an error in your SQL syntax.' > > I've attached a TSQLMonitor to the connection and it tells me that the > automatically generated SQL is : > > update servers; set > port_num = '110' > where > serverNum = '1' and > hostname = 'hostname' and > port_num = '120' and > account_name = 'name' and > account_password = 'pass' and > active = '1' > > There is a semi-colon after the 'update servers' clause. I know this is not > valid SQL and is probably causing the problem ? If so, how can I get rid of > it considering that the SQL statement is automatically generated by the > DataSetProvider ? > > >
Technical Details
Message-ID:
<404441dc@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40443491$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,aff855f438a25a33 X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2004-03-02 00:34:31 PST From: "Curt" <a@aol.com> Newsgroups: borland.public.cppbuilder.database.multi-tier References: <40443491$1@newsgroups.borland.com> Subject: Re: Strange Semi-Colon in SQL Date: Tue, 2 Mar 2004 00:10:31 -0800 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 208.13.134.8 Message-ID: <404441dc@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1078215132 208.13.134.8 (2 Mar 2004 00:12:12 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail