Access/SQL Server ODBC Connection Issue: Error 17

  • I'm having a problem with a connection betwen SQL Server (2005, Named Pipes) and Access. Both exist on the same machine.

    I've created an ODBC connection, tested it, and it works fine.

    In Access, I link to the SQL Server tables, save the password, and that seems to work fine. I can open the table, and see the data.

    When I close Access and reopen it, when I try to access the table, either through a query or just opening it, I get a SQL Server Error: 17. SQL Server does not exist, or access denied.

    I click the 'OK' button, then the SQL Server Logon box appears. Click 'OK' here, and I'm able to get to the data.

    Anyone have any ideas what is going on here?

  • Check your connection properties in Access. I've seen that problem when there were incorrect credentials stored there.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • That's a great suggestion, but how do you check the connection properties? Isn't that all being handled by the ODBC DSN?

  • Tim -

    go into design on one of the linked tables in Access, then find the table properties area. You may find that it's replicated the CONTENTS of the DSN in the connection string.

    For better or worse - I've run into several versions of MDAC which "refuse" to store passwords "for security passwords", so you get prompted for the password again, even with it being saved in the conn string. "Forcing" the connection string in Access to not have the user ID and password (instead just has "ODBC;DSN=MYDSNNAME") would fix that - but every so often upon relinking/refreshing the tables, the "replace" would happen again.

    ----------------------------------------------------------------------------------
    Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply