Article View: borland.public.cppbuilder.database.ado
Article #3554Re: Connection String
From: Samuel
Date: Thu, 01 Aug 2002 19:09
Date: Thu, 01 Aug 2002 19:09
67 lines
2951 bytes
2951 bytes
Thanks Carlos Samuel "Carlos" <shangri-la@teleline.es> wrote in message news:3d481fb2_1@dnews... > If you want to change the content of the Connection String if the user > change the DSN you have 2 options: > > If you use a DSN in a file: > > ConnectionString = "FILE NAME=old_path\file.dsn"; > Connected = false; > ConnectionString = "FILE NAME=new_path\file.dsn" > > If you use a system DSN: > > ConnectionString = "Provider=provider ; Data Source=old_DSN; ..." > Connected = false; > ConnectionString = "Provider=provider ; Data Source=new_DSN; ..." > > Bye! > > > "Samuel" <samuel@hectrix.com> escribi?en el mensaje > 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:
<3d48b35a$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!66.250.146.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!btnet-peer0!btnet-peer!btnet!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mailReferences:
<3d475995$1_1@dnews> <3d478d39_1@dnews> <3d479081_1@dnews> <3d481fb2_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-07-31 21:18:12 PST Reply-To: "Samuel" <samuel@hectrix.com> From: "Samuel" <samuel@hectrix.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3d475995$1_1@dnews> <3d478d39_1@dnews> <3d479081_1@dnews> <3d481fb2_1@dnews> Subject: Re: Connection String Date: Thu, 1 Aug 2002 12:09:55 -0700 Lines: 69 Organization: Hectrix X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 203.80.236.62 Message-ID: <3d48b35a$1_1@dnews> X-Trace: dnews 1028174682 203.80.236.62 (31 Jul 2002 21:04:42 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!66.250.146.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!btnet-peer0!btnet-peer!btnet!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail