Article View: borland.public.cppbuilder.database.ado
Article #5070Login prompt box
From: Lew
Date: Sun, 12 Aug 2001 20:12
Date: Sun, 12 Aug 2001 20:12
26 lines
1558 bytes
1558 bytes
Hi,
Being new to BCB, and feeling my way around
with as yet not much in the way of tutorial books,
I have a little problem which I am hoping someone
here can assist with.
When accessing SQL database, I get the login
/password box opening up. I want to inhibit this
prompt, and hard code the login/password.
I am using a SQL Query object on a form with
a button and two Edit boxes.
I execute the following code from the button.
Query1->SQL->Clear();
Query1->SQL->Add("select * from client");
Query1->Open();
Edit1->Text = Query1->Fields[0]->Value;
Edit2->Text = Query1->Fields[1]->Value;
All works fine, just the prompt box problem ?
Any help greatly appreciated.
Lew.
Technical Details
Message-ID:
<3b76e4b4_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.230.129.106!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,bbc32dec0724cb4,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-08-12 13:32:24 PST From: "Lew" <lew@businet.co.nz> Newsgroups: borland.public.cppbuilder.database.ado Subject: Login prompt box Date: Mon, 13 Aug 2001 08:12:52 +1200 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 202.27.180.8 Message-ID: <3b76e4b4_2@dnews> X-Trace: dnews 997647540 202.27.180.8 (12 Aug 2001 13:19:00 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.230.129.106!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews