🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #529

Re: SQL INSERT Problem

#529
From: Viatcheslav V. Vassiliev
Date: Thu, 08 Sep 2005 20:03
38 lines
2048 bytes
You missed braces around lfd:

INSERT INTO Adler (lfd) VALUES('xxxxxx')

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Rainer Welzel" <master@fgg-welzel.de> �������/�������� � �������� 
���������: news:43206486$1@newsgroups.borland.com...
> 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: <432098dd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43206486$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,9b52aaddbfb78bef
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <43206486$1@newsgroups.borland.com>
Subject: Re: SQL INSERT Problem
Date: Fri, 9 Sep 2005 00:03:42 +0400
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 85.93.138.132
Message-ID: <432098dd$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1126209757 85.93.138.132 (8 Sep 2005 13:02:37 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail