SteveS
Posts: 41
|
Posted: 03/16/2004, 10:17 AM |
|
Hi, I'm trying to find a solution that allows me to configure the system DSN to my database via a .reg file (for use in distributing my app), rather than manually entering it when you load the app.
Any ideas?
Many thanks, Steve.
|
|
|
DonB
|
Posted: 03/16/2004, 3:08 PM |
|
I think you should look into the "file dsn" - where you specify the
connection string via a text file. msdn.microsoft.com is a good reference
for making these and using them. Hacking ODBC connections into the registry
is not a trivial task and it's easy to get it wrong.
I always create the connection string directly within my application, rather
than relying on an external definition - that way there is one less thing to
be misconfigured or deleted accdently by someone who doesn't know what it's
for.
--
DonB
http://www.gotodon.com/ccbth
"SteveS" <SteveS@forum.codecharge> wrote in message
news:6405744b76491f@news.codecharge.com...
> Hi, I'm trying to find a solution that allows me to configure the system
DSN to my database via a .reg file (for use in distributing my app), rather
than manually entering it when you load the app.
>
> Any ideas?
>
> Many thanks, Steve.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
|