🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #497

Don't know how to connect to a database (Help)

#497
From: Don Graves
Date: Mon, 10 Sep 2001 15:08
9 lines
1570 bytes
Hello All,

I am new to Borland�s C++ Builder. I am having a devil of a time trying to write a �hello world� type database program. I have successfully created a BDE alias to my database server. I have confirmed the connection to the database (Informix). My problems seem to arise in the actual programming. All I want to do is to write a program to connect to the database, pass in two dynamically generated SQL statements, and print the results to the screen.

I have been muddling around with placing tDataSource and TTable objects onto the screen, but that�s as far as I get before getting all kinds of errors. I think I�m missing some important steps. Anyone know what I�m doing wrong?

Thanks For Your Time,
Don Graves
Technical Details
Message-ID: <3b9cd786$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fcd2b,20ad600c81c5c013,start
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-09-10 08:11:40 PST
From: "Don Graves" <dgraves@csc.com>
Sender: "Don Graves" <dgraves@csc.com>
Reply-To: "Don Graves" <dgraves@csc.com>
Subject: Don't know how to connect to a database (Help)
Newsgroups: borland.public.cppbuilder.database.multi-tier
X-User-Info: 208.219.64.15 208.219.64.15    
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3b9cd786$1_1@dnews>
Date: 10 Sep 2001 08:08:54 -0700
X-Trace: dnews 1000134534 207.105.83.65 (10 Sep 2001 08:08:54 -0700)
Lines: 10
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews