Article View: borland.public.cppbuilder.database.ado
Article #3095Re: small problem... (maybe huge...)
From: Vassiliev V.V.
Date: Tue, 17 Dec 2002 07:48
Date: Tue, 17 Dec 2002 07:48
56 lines
2907 bytes
2907 bytes
Build your connection string at runtime. For example //Your stuff to read connection string from anywhere (registry, ini file etc.) into Path variable (AnsiString or WideString) ADOConnection1->Provider = "Microsoft.Jet.OLEDB.4.0"; ADOConnection1->ConnectionString = "Data Source=" + Path; ADOConnection1->Connected = true; ---------------------------------------------------------------- Regards, Viatcheslav V. Vassiliev http://www.oledbdirect.com The fastest way to access MS SQL Server, MS Jet (MS Access) and Interbase (LCPI provider, http://ibp.lcpi.lipetsk.ru) databases. "Ricardo Rodrigues" <madinfo@cadaval.net> �������/�������� � �������� ���������: news:3dfe39de@newsgroups.borland.com... > hummm not realy what i want.. > i realy want to read a .udl file or a ini file whit new path, and he read-it > at startup... > any ideia? becase i can real use local path (C:) > > --Ricardo > > > "Mark Guerrieri" <mguerrieri@cmsgrp.com> wrote in message > news:3dfe1baf$1@newsgroups.borland.com... > > Use a UNC path. > > > > Mark Guerrieri > > mguerrieri@cmsgrp.com > > > > "Ricardo Manuel Santos Rodrigues" <ricardo.rodrigues@oesteconta.org> wrote > > in message news:3dfe179c@newsgroups.borland.com... > > > Hi i have a small application using an ADO connection, everithing ok > but.. > > i > > > want when application starts to check a .udl file if the path to the db > > > (.mdb) is been changed or not... because this is for work on a lan and > > path > > > is not tha same on all computers... is there any way to do this? anyway? > > > > > > tanks in advance > > > > > > --Ricardo > > > > > > > > > > > >
Technical Details
Message-ID:
<3dfed6ef@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3dfe179c@newsgroups.borland.com> <3dfe1baf$1@newsgroups.borland.com> <3dfe39de@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,1ced1a105f91efba X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-12-17 00:09:00 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3dfe179c@newsgroups.borland.com> <3dfe1baf$1@newsgroups.borland.com> <3dfe39de@newsgroups.borland.com> Subject: Re: small problem... (maybe huge...) Date: Tue, 17 Dec 2002 10:48:27 +0300 Lines: 58 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: 212.188.98.123 Message-ID: <3dfed6ef@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1040111343 212.188.98.123 (16 Dec 2002 23:49:03 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail