SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Access/SQL Server ODBC Connection Issue: Error 17


Access/SQL Server ODBC Connection Issue: Error 17

Author
Message
Tim Donegan
Tim Donegan
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 12
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?
GSquared
GSquared
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23855 Visits: 9730
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
Tim Donegan
Tim Donegan
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 12
That's a great suggestion, but how do you check the connection properties? Isn't that all being handled by the ODBC DSN?
Matt Miller (4)
Matt Miller (4)
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12477 Visits: 18576
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?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search