Paradox Community

Items in pnews.paradox-programming

Subject:Re: file.dns
Date:31 May 2022 09:10:45 -0400
From:"Thies Grimm" <thies.grimm@t-online.de>
Newsgroups:pnews.paradox-programming

Moin Günter,

you don't need a file: it's just the registry.

current user
SOFTWARE\ODBC\ODBC.INI
SOFTWARE\WOW6432Node\ODBC\ODBC.INI

1. check your dns name
create your own name if you want

2. check the entries
If You don't know the entries, create manually a dns and then just read them
form the registry


Same with the default login, using open method/procedure 
dbSQL.open ( [ const aliasName String, const parms DynArray ]
create an alias via BDE-Admin and just read the entries 

If you need help,  let me know!

Thies



=?UTF-8?Q?G=c3=bcnter?= <info@NoSpam-mk-news.com> wrote:
>is it possible to connect to a ODBC Database via file.dns?
>i tried it a lot, but i do not find a correct ALIAS-DNS.file cobination.
>
>Günter
>
>MyConection.dns
>
>[ODBC]
>DRIVER=MySQL ODBC 8.0 ANSI Driver
>UID=test
>PORT=3306
>DATABASE=test
>SERVER=189.189.189.189


Copyright © 2004 thedbcommunity.com