🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Connection String

#3556
From: Vassiliev V.V.
Date: Thu, 01 Aug 2002 06:40
55 lines
2687 bytes
1. Place TADOConnection to form.
2. Double-click "ConnectionString" property.
3. Check "Use Connection String" and press "Build...".
4. In dialog set provider and properties you need.
5. Press "Check connection".
6. If not successfull - goto 4.
7. Press OK.
8. In dialog or in TADOConnection.ConnectionString you can see connection
string. Examine it.

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


"Samuel" <samuel@hectrix.com> �������/�������� � �������� ���������:
news:3d479081_1@dnews...
> May be my question is not clear. I want to know what should be the content
> of the connection string. Or, any other method can make my program change
> the database manually.
>
> Samuel
>
> "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> wrote in message
> news:3d478d39_1@dnews...
> > You do not need DSN with ADO (if your OLEDB provider is not ODBC). You
can
> > change ConnectionString as
> >
> > ADOConnection1->Connected = false;
> > ADOConnection1->ConnectionString = "NewConnectionString";
> > ADOConnection1->Connected = true;
> >
> > Regards,
> > Vassiliev V.V.
> > http://www.oledbdirect.com
> >
> > "Samuel" <samuel@hectrix.com> ������?�������� ?�������� ��������?
> > news:3d475995$1_1@dnews...
> > > Hi,
> > >     I have an application that my client can change his DSN / ODBC
> > setting.
> > > Can I use ADO to do this? As I use mODBC before but I want to change
to
> > ADO
> > > now. Could anyone tell me how to change the connection string???
> > > Thanks alot
> > >
> > > Samuel
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID: <3d48ddc1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!64.152.100.70.MISMATCH!ps01-sjc1!news.webusenet.com!newsfeed1.cidera.com!Cidera!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail
References: <3d475995$1_1@dnews> <3d478d39_1@dnews> <3d479081_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,7d2700c30f2a7a8e
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-08-01 00:17:15 PST
From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3d475995$1_1@dnews> <3d478d39_1@dnews> <3d479081_1@dnews>
Subject: Re: Connection String
Date: Thu, 1 Aug 2002 10:40:00 +0400
Lines: 57
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.250
Message-ID: <3d48ddc1_1@dnews>
X-Trace: dnews 1028185537 62.118.138.250 (1 Aug 2002 00:05:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!64.152.100.70.MISMATCH!ps01-sjc1!news.webusenet.com!newsfeed1.cidera.com!Cidera!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail