🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADO Connection

#4023
From: Vassiliev V.V.
Date: Sun, 21 Apr 2002 08:26
29 lines
1927 bytes
Add TADOQuery to form. Set its ConnectionString property to
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=pubs;
or
Provider=SQLOLEDB.1;User ID=sa;Password=;Initial Catalog=pubs;
Set SQL property to Select * from authors
Set Active property to true.

Run-time code looks like:
ADOQuery1->ConnectionString = "Provider=SQLOLEDB.1;User
ID=sa;Password=;Initial Catalog=pubs;";
ADOQuery1->SQL->Text = "Select * from authors";
ADOQuery1->Active = true;

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


"Aris" <ashokooh@centennialpr.net> �������/�������� � �������� ���������:
news:3cc228d0_2@dnews...
> I am having difficulty making run-time connection to MS SQL Server 7
> (SQLOLEDB.1 provider) using ADOConnectionString in BCB5. I need concrete
> help:  C++ statements showing clearly how to do it.  Will appreciate it
> greatly.
>
> Aris
>
>
Technical Details
Message-ID: <3cc27939_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!news-hub.cableinet.net!blueyonder!proxad.net!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3cc228d0_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,f7dc40439631c1c0
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-04-21 01:38:43 PST
From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3cc228d0_2@dnews>
Subject: Re: ADO Connection
Date: Sun, 21 Apr 2002 12:26:29 +0400
Lines: 31
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.129.238
Message-ID: <3cc27939_1@dnews>
X-Trace: dnews 1019377977 62.118.129.238 (21 Apr 2002 01:32:57 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!news-hub.cableinet.net!blueyonder!proxad.net!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews