🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CREATE TABLE problem

#3465
From: Vassiliev V.V.
Date: Fri, 02 Aug 2002 06:54
35 lines
1939 bytes
Remove last "," before ")" - in QueryStation->SQL->Add("
Cust_Group_Comments Text,");

Regards,
Vassiliev V.V.
http://www.oledbdirect.com

"Ola Eriksen" <ola@callcom.no> ???????/???????? ? ???????? ?????????:
news:3D491BBA.489C88F5@callcom.no...
> Hi there!
>
> I'm using C++ Builder 5 and a Access database.
>
> I'm trying to create a table with this code:
>
>       QueryStation->SQL->Add("Create Table Cust_Groups ");
>       QueryStation->SQL->Add("(");
>       QueryStation->SQL->Add("  Cust_Group_ID Int Identity Primary
> key,");
>       QueryStation->SQL->Add("  Cust_Group_Name VarChar(30) Unique Not
> null,");
>       QueryStation->SQL->Add("  Cust_Group_Comments Text,");
>       QueryStation->SQL->Add(")");
>       QueryStation->ExecSQL();
>
> ...but I resive an exception error "Syntax error in field definition"
> What's wrong with my field definition?
>
> I've managed to create the table without any fields... (just:   CREATE
> TABLE Cust_Groups)
>
> Thank's in advance
>
> Ola
>
Technical Details
Message-ID: <3d4a3bb1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail
References: <3D491BBA.489C88F5@callcom.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,3712af9d711884ff
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-08-02 01:05:31 PST
From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3D491BBA.489C88F5@callcom.no>
Subject: Re: CREATE TABLE problem 
Date: Fri, 2 Aug 2002 10:54:21 +0400
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 62.118.138.244
Message-ID: <3d4a3bb1_2@dnews>
X-Trace: dnews 1028275121 62.118.138.244 (2 Aug 2002 00:58:41 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail