Article View: borland.public.cppbuilder.database.ado
Article #528SQL INSERT Problem
From: Rainer Welzel
Date: Thu, 08 Sep 2005 16:20
Date: Thu, 08 Sep 2005 16:20
21 lines
1488 bytes
1488 bytes
Hi,
I have trouble to set an SQL INSERT command .
This is the Code:
Memo3->Clear();
Memo3->Lines->Add(" INSERT INTO Adler ");
Memo3->Lines->Add("lfd");
Memo3->Lines->Add("VALUES ('xxxxxxx') ");
ADOQuery->SQL->Clear();
ADOQuery->SQL = Memo3->Lines;
ADOQuery->Open();
// throws an Exception: .. Syntax-Error in the INSERT INTO command .....
The Database is an MS-ACCESS Database with a simple table named 'Adler'
with fields LFD NACHNAME VORNAME ....
lfd is a textfield: width 7
thx
Rainer Welzel
Technical Details
Message-ID:
<43206486$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,9b52aaddbfb78bef,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Rainer Welzel" <master@fgg-welzel.de> Newsgroups: borland.public.cppbuilder.database.ado Subject: SQL INSERT Problem Date: Thu, 8 Sep 2005 18:20:33 +0200 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 84.154.241.211 Message-ID: <43206486$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1126196358 84.154.241.211 (8 Sep 2005 09:19:18 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail