Solved

Remove Saved Password for Linked Table

Posted on 2008-10-24
4
455 Views
Last Modified: 2008-10-25
I just used the SQL Server Migration Assistant for Access to upsize my Access database back end to SQL Server.  The password to the linked tables was saved in Access, so that when you open the database, no password is required.  However, I would like a password to be required (a SQL Server user-based password, not an Access database password).  How do I remove the saved password from the database so that it asks for a user and password when the database is opened?

I know I could disconnect and reconnect the tables, opting to not save the password, but that would require me to create a DSN, and I prefer to  have this be DSN-less.

Thanks!
0
Comment
Question by:Orcadian
  • 2
4 Comments
 
LVL 18

Expert Comment

by:jmoss111
ID: 22801723
Hello Orcadian,

What type of authentication is on the database, trusted, sql or mixed mode?


Regards,

Jim
0
 

Author Comment

by:Orcadian
ID: 22801729
SQL Authentication
0
 
LVL 18

Expert Comment

by:jmoss111
ID: 22801760
I'm not 100% sure about this but I think that the password is stored in the registry, not the database, in ODBC.INI
0
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 22802062
You will have to delete and recreate the links.

Use DAO code like this:

Set dbs = CurrentDb
Set tblTable = dbs.CreateTableDef(NameForTableInAccess)
tblTable.Connect = YourConnectionString
tblTable.SourceTableName = TableNameAsNamedInBackEnd
dbs.TableDefs.Append tblTable

For connectionstring:

http://www.carlprothman.net/Default.aspx?tabid=90#ODBCDriverForSQLServer

/gustav

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now