public inbox for [email protected]
help / color / mirror / Atom feedRe: Way to retrieve UserName/Password
2+ messages / 2 participants
[nested] [flat]
* Re: Way to retrieve UserName/Password
@ 2025-11-23 03:37 David G. Johnston <[email protected]>
2025-11-23 04:18 ` Re: Way to retrieve UserName/Password Igor Korot <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: David G. Johnston @ 2025-11-23 03:37 UTC (permalink / raw)
To: Igor Korot <[email protected]>; +Cc: pgsql-generallists.postgresql.org <[email protected]>
On Saturday, November 22, 2025, Igor Korot <[email protected]> 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.
David J.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Way to retrieve UserName/Password
2025-11-23 03:37 Re: Way to retrieve UserName/Password David G. Johnston <[email protected]>
@ 2025-11-23 04:18 ` Igor Korot <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Igor Korot @ 2025-11-23 04:18 UTC (permalink / raw)
To: David G. Johnston <[email protected]>; +Cc: pgsql-generallists.postgresql.org <[email protected]>
Hi, David,
On Sat, Nov 22, 2025 at 9:37 PM David G. Johnston
<[email protected]> wrote:
>
> On Saturday, November 22, 2025, Igor Korot <[email protected]> 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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-11-23 04:18 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-11-23 03:37 Re: Way to retrieve UserName/Password David G. Johnston <[email protected]>
2025-11-23 04:18 ` Igor Korot <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox