Article View: borland.public.cppbuilder.database.ado
Article #5328Re: Create ADO connection (DSN) programmatically
From: Mike
Date: Thu, 31 May 2001 15:13
Date: Thu, 31 May 2001 15:13
27 lines
1697 bytes
1697 bytes
3 things come to mind: 1. you can use the InstallShield option to create an ODBC DSN. 2. look in Code Central for a coding example. 3. there is an ODBC API call SqlConfigDataSource() that I believe is documented in the Microsoft MDAC SDK. <Bert> wrote in message news:3b136f22.97439220@newsgroups.borland.com... > > General : I made a bcb 5.0 application which reads from/writes to an > Access database (ADO). > > At this moment I made the DSN manually in the control panel (ODBC32) > > I installed service pack 1 + the ADO update and mdac 2.6 > > Problem : How can I create this DSN programmatically ? > > I tried to work with the connection-string, but this doesn' t work on > Windows NT 4.0. > > > Thanks, > > Bert.Vanstreels > (@bigfoot.com) >
Technical Details
Message-ID:
<3b16614d_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3b136f22.97439220@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,d3861d61423e148f X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-05-31 08:24:25 PST From: "Mike" <mjk111@ameritech.net> Newsgroups: borland.public.cppbuilder.database.ado References: <3b136f22.97439220@newsgroups.borland.com> Subject: Re: Create ADO connection (DSN) programmatically Date: Thu, 31 May 2001 11:13:27 -0400 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 24.50.243.76 Message-ID: <3b16614d_2@dnews> X-Trace: dnews 991322445 24.50.243.76 (31 May 2001 08:20:45 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews