Re: Way to retrieve UserName/Password
| От | Igor Korot |
|---|---|
| Тема | Re: Way to retrieve UserName/Password |
| Дата | |
| Msg-id | CA+FnnTyheuK0H0DfcH0pA2fAh44K+a6or4EnAvkYLiv917Z46A@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Way to retrieve UserName/Password ("David G. Johnston" <david.g.johnston@gmail.com>) |
| Список | pgsql-general |
Hi, David, On Sat, Nov 22, 2025 at 9:37 PM David G. Johnston <david.g.johnston@gmail.com> wrote: > > On Saturday, November 22, 2025, Igor Korot <ikorot01@gmail.com> wrote: >> >> >> WHat I'd like to do in my software is to get those parameters and use >> them in the "Connect To DB" dialog. > > > There is pretty much nothing special about this situation pertaining to PostgreSQL. What specific challenge are you encountering? I have to imagine nearly all languages have a module/library that handles this 30+ year old file format. The simplest solution would be to use SQLGetPrivateProfileString(). However, as much as I'd like to, this function distinguishes between "UserId" and "UserID". There is also a problem where the odbc.ini file location is different from distro to distro, which the function above nicely handles, but I'll need to roll my own some 3rd party library. Thank you. > > David J.
В списке pgsql-general по дате отправления: