🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Creating a DATABASE with C++ Builder

#4878
From: Mark Cashman
Date: Tue, 25 Sep 2001 03:35
30 lines
2021 bytes
Hi, Chema!

C++ does not support embedded SQL.

There are ways to create an empty database from C++ Builder programs
using the ADO or BDE components, but most developers prefer to use the
available DBMS tools to create an empty database table space or file and
then copy that to where it is needed, because the alternative is too
complex.

If, on the other hand, you want to create a table in an existing
database, you can use the CREATE TABLE sql statement in the SQL property
of the TQuery or TADOQuery component.

Have a look at

http://www.temporaldoorway.com/programming/cbuilder/basics/simpledbprogram.htm

for a very simple BDE program that shows the basic components used.

I hope this helps to get you started.

------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Technical Details
Message-ID: <3BAFFB81.871E2EE3@temporaldoorway.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3BAB10D9.A048B0A5@ars-nova.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,814038369c574588
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-09-24 20:47:38 PST
Message-ID: <3BAFFB81.871E2EE3@temporaldoorway.com>
Date: Mon, 24 Sep 2001 23:35:30 -0400
From: Mark Cashman <mcashman@temporaldoorway.com>
Reply-To: mcashman@temporaldoorway.com
X-Mailer: Mozilla 4.77 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Creating a DATABASE with C++ Builder
References: <3BAB10D9.A048B0A5@ars-nova.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.14.197.193
X-Trace: dnews 1001389448 24.14.197.193 (24 Sep 2001 20:44:08 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews