pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedQuestion about saving user name and password
7+ messages / 3 participants
[nested] [flat]
* Question about saving user name and password
@ 2009-11-02 20:59 Nim Li <nimli@sri.utoronto.ca>
0 siblings, 2 replies; 7+ messages in thread
From: Nim Li @ 2009-11-02 20:59 UTC (permalink / raw)
To: pgsql-odbc
Hello,
I'm building an Access UI to work with a postgresql database. I'm using
psqlodbc for the database connection.
Every time I start the Access file to run the form, a pop-up window
shows up to ask for username and password.
Can we avoid the pop-up window by saving the username and password
somewhere?
Many thanks!
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Question about saving user name and password
@ 2009-11-02 21:03 Raymond O'Donnell <rod@iol.ie>
parent: Nim Li <nimli@sri.utoronto.ca>
1 sibling, 1 reply; 7+ messages in thread
From: Raymond O'Donnell @ 2009-11-02 21:03 UTC (permalink / raw)
To: Nim Li <nimli@sri.utoronto.ca>; +Cc: pgsql-odbc
On 02/11/2009 20:59, Nim Li wrote:
> I'm building an Access UI to work with a postgresql database. I'm using
> psqlodbc for the database connection.
>
> Every time I start the Access file to run the form, a pop-up window
> shows up to ask for username and password.
>
> Can we avoid the pop-up window by saving the username and password
> somewhere?
Hi there,
I haven't used ODBC in a while, but I seem to remember that there were
fields to enter the username & password in the DSN configuration
dialogs.... have you tried that?
HTH,
Ray.
--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Question about saving user name and password
@ 2009-11-02 21:08 Richard Broersma <richard.broersma@gmail.com>
parent: Nim Li <nimli@sri.utoronto.ca>
1 sibling, 0 replies; 7+ messages in thread
From: Richard Broersma @ 2009-11-02 21:08 UTC (permalink / raw)
To: Nim Li <nimli@sri.utoronto.ca>; +Cc: pgsql-odbc
On Mon, Nov 2, 2009 at 12:59 PM, Nim Li <nimli@sri.utoronto.ca> wrote:
> Can we avoid the pop-up window by saving the username and password
> somewhere?
In Ms-Access when you link a table one of the settings is to store the
username and password (in plain text) as part of the link definition.
Also, for other good advice regarding ODBC and MS-Access the following
link is a good resource:
http://www.utteraccess.com/forums/showflat.php?&Board=53&Number=1843709&page=0&view=...
--
Regards,
Richard Broersma Jr.
Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Question about saving user name and password
@ 2009-11-02 21:14 Nim Li <nimli@sri.utoronto.ca>
parent: Raymond O'Donnell <rod@iol.ie>
0 siblings, 1 reply; 7+ messages in thread
From: Nim Li @ 2009-11-02 21:14 UTC (permalink / raw)
To: rod@iol.ie; +Cc: pgsql-odbc
Thank you for your quick reply.
I don't see any place to specify "save username and password".
When I run the form in Access file, the pop-up window shows:
- Database
- SSL Mode (which has only "disable" option)
- Server
- Port
- User Name
- Password
- Connection (button; when I click on it, another window shows up but
I don't see any options related to password)
- Manage DSN (button; when I click on it, nothing pops up)
Any idea what I should check next?
Many thanks!!
On 11/2/2009 4:03 PM, Raymond O'Donnell wrote:
> On 02/11/2009 20:59, Nim Li wrote:
>
>> I'm building an Access UI to work with a postgresql database. I'm using
>> psqlodbc for the database connection.
>>
>> Every time I start the Access file to run the form, a pop-up window
>> shows up to ask for username and password.
>>
>> Can we avoid the pop-up window by saving the username and password
>> somewhere?
>
> Hi there,
>
> I haven't used ODBC in a while, but I seem to remember that there were
> fields to enter the username & password in the DSN configuration
> dialogs.... have you tried that?
>
> HTH,
>
> Ray.
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Question about saving user name and password
@ 2009-11-02 21:19 Raymond O'Donnell <rod@iol.ie>
parent: Nim Li <nimli@sri.utoronto.ca>
0 siblings, 1 reply; 7+ messages in thread
From: Raymond O'Donnell @ 2009-11-02 21:19 UTC (permalink / raw)
To: Nim Li <nimli@sri.utoronto.ca>; +Cc: pgsql-odbc
On 02/11/2009 21:14, Nim Li wrote:
> Thank you for your quick reply.
>
> I don't see any place to specify "save username and password".
Well, I was thinking of where I create and/or edit the DSN:
-> Start menu
-> Administrative tools
-> Data sources (ODBC)
-> User DSN or System DSN etc
-> Add (or "Configure for an exiting one)
-> Look for the username and password fields.
Ray.
--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Question about saving user name and password
@ 2009-11-02 21:34 Nim Li <nimli@sri.utoronto.ca>
parent: Raymond O'Donnell <rod@iol.ie>
0 siblings, 1 reply; 7+ messages in thread
From: Nim Li @ 2009-11-02 21:34 UTC (permalink / raw)
To: rod@iol.ie; +Cc: pgsql-odbc
I find something weird...
In Start > Admin tools> ODBC > User DSN, if I click "Add...", I don't
see the PostgreSQL driver in the list at all.
If I go to File DSN to configure the dsn file I've previously created,
it prompts:
General error: Invalid file dsn '... file name ...'
I install the psqlodbc by running the psqlodbc.msi, and I know the
driver (dll files) is installed to:
C:\Program Files\psqlODBC\0804\bin\
Is there something else I need to do?
Thank you for your help!!
On 11/2/2009 4:19 PM, Raymond O'Donnell wrote:
> On 02/11/2009 21:14, Nim Li wrote:
>> Thank you for your quick reply.
>>
>> I don't see any place to specify "save username and password".
>
> Well, I was thinking of where I create and/or edit the DSN:
>
> -> Start menu
> -> Administrative tools
> -> Data sources (ODBC)
> -> User DSN or System DSN etc
> -> Add (or "Configure for an exiting one)
> -> Look for the username and password fields.
>
> Ray.
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Question about saving user name and password
@ 2009-11-03 15:52 Nim Li <nimli@sri.utoronto.ca>
parent: Nim Li <nimli@sri.utoronto.ca>
0 siblings, 0 replies; 7+ messages in thread
From: Nim Li @ 2009-11-03 15:52 UTC (permalink / raw)
To: rod@iol.ie; +Cc: pgsql-odbc
Hello,
After I re-install the psqlodbc driver, I can find the postgresql driver
in odbc. However the same problem persists ... I can't find anywhere to
store the username and password.
Then, instead of reading the linked tables, I use ADO's connection
string to make the database connection, through which I provide the user
name and password in the codes. This solves my problem.
Thank you for your assistance.
On 11/2/2009 4:34 PM, Nim Li wrote:
> I find something weird...
>
> In Start > Admin tools> ODBC > User DSN, if I click "Add...", I don't
> see the PostgreSQL driver in the list at all.
>
> If I go to File DSN to configure the dsn file I've previously created,
> it prompts:
>
> General error: Invalid file dsn '... file name ...'
>
> I install the psqlodbc by running the psqlodbc.msi, and I know the
> driver (dll files) is installed to:
>
> C:\Program Files\psqlODBC\0804\bin\
>
> Is there something else I need to do?
>
> Thank you for your help!!
>
> On 11/2/2009 4:19 PM, Raymond O'Donnell wrote:
>> On 02/11/2009 21:14, Nim Li wrote:
>>> Thank you for your quick reply.
>>>
>>> I don't see any place to specify "save username and password".
>>
>> Well, I was thinking of where I create and/or edit the DSN:
>>
>> -> Start menu
>> -> Administrative tools
>> -> Data sources (ODBC)
>> -> User DSN or System DSN etc
>> -> Add (or "Configure for an exiting one)
>> -> Look for the username and password fields.
>>
>> Ray.
>>
>
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2009-11-03 15:52 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-11-02 20:59 Question about saving user name and password Nim Li <nimli@sri.utoronto.ca>
2009-11-02 21:03 ` Raymond O'Donnell <rod@iol.ie>
2009-11-02 21:14 ` Nim Li <nimli@sri.utoronto.ca>
2009-11-02 21:19 ` Raymond O'Donnell <rod@iol.ie>
2009-11-02 21:34 ` Nim Li <nimli@sri.utoronto.ca>
2009-11-03 15:52 ` Nim Li <nimli@sri.utoronto.ca>
2009-11-02 21:08 ` Richard Broersma <richard.broersma@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox