🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Configuring DSN automaticaly via setup software!

#5727
From: Jerry Bloomfield (TeamB)
Date: Mon, 26 Feb 2001 05:44
26 lines
2417 bytes
On Sat, 17 Feb 2001 17:17:09 -0300, "Alexandre C�sar Reis Tr�s"
<alex@infohab.org.br> wrote:

>Hi friend�s, i need distributed one application wich use one Access table
>access through ADO Connection and ADO Table.Well, when i create the setup
>disk of installation through InstallShield Express and then install this
>application in another computer its failure!!!!
>I know wich the mdac will be there, this is not problem, my great problem is
>HOW I DO TO CONFIGURE AUTOMATICALY THE DSN FILE ?In my machine i create and
>configure the DSN to point to my Access table, but the user dont know
>nothing about DSN.Please, i need one software or one way (through article in
>NET) to configure DSN automaticaly!!!

You should use the InstallShield feature to create the ODBC DSN for you.
If you are using the free ISX which ships with C++Builder,  this capability
may not be present,  in which case you can still create the DSN
programmatically using the ODBC API call to SQLConfigDataSource().  This
function call is documented in the MDAC SDK from Microsoft.  I believe I
have an example of using this for MS-Access MDB files uploaded to Code
Central which you could also take a look at for some help...

Jerry Bloomfield (TeamB)
-- 
http://www.teamb.com                                      JersWork@wwa.com
Please do *NOT* send private e-mail without prior permission (my anti-spam 
filters will probably just delete it anyway <g>)
Technical Details
Message-ID: <j3rj9ts2n7sg54p9sv6pg8m9q9dirvm9n8@4ax.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mail
References: <3a8eceb4$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,a503e6f515826d07
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-02-25 21:46:05 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mail
From: "Jerry Bloomfield (TeamB)" <JersWork@wwa.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Configuring DSN automaticaly via setup software!
Date: Sun, 25 Feb 2001 23:44:04 -0600
Organization: LSVFA - Latest Software Version Freaks Anonomous
Lines: 26
Message-ID: <j3rj9ts2n7sg54p9sv6pg8m9q9dirvm9n8@4ax.com>
References: <3a8eceb4$1_2@dnews>
NNTP-Posting-Host: 157-238-71-166.il.verio.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Forte Agent 1.8/32.548