ODBC to SQL 2005, pass through queries ask for password

N

nnn

I have an application that's deployed at several location on windows
2003 servers. On each site it uses a distinct system dsn which contains
sa user and pswd, different for each site. Access ver 2000.

On on server, any time I call a passthrough query, I'm prompted for the
sa password. The linked tables present data without prompting for
password. I've removed and recreated the system dsn and the issue
persists.

All of the servers have the latest patches for windows 2003, and also
for sql server express. Why isnt' the password being retained by Access,
only for pass through queries?
 
N

nnn

I have an application that's deployed at several location on windows
2003 servers. On each site it uses a distinct system dsn which contains
sa user and pswd, different for each site. Access ver 2000.

On on server, any time I call a passthrough query, I'm prompted for the
sa password. The linked tables present data without prompting for
password. I've removed and recreated the system dsn and the issue
persists.

All of the servers have the latest patches for windows 2003, and also
for sql server express. Why isnt' the password being retained by Access,
only for pass through queries?
Oh well, that was cleared up as soon as I posted. I had used win auth on
the other servers. Still curious as to why the sa password was not
retained by the passthrough queries?
 
D

david

There is actually an Access connection option that controls this
behaviour (save ODBC password), and you may wish to look
for that, but I wouldn't expect it to work.

It used to be possible, but somewhere along the line it was disabled
without documentation for security reasons. Access probably can't
and doesn't store passwords for ODBC sources anymore. You either
have to enter the password each time, or use an ODBC driver
and DSN that can store a password, or use a system like Win
Authorisation that doesn't require a password each time.

Just putting the password into any DSN is not good enough, because
Access only uses the DSN for reference. Connection details are
stored with the connection, and Access only checks the DSN when
it feels the need. So you would need a driver that explicitly chooses
to check the DSN, regardless of the instructions from Access.

(david)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top