Solved

Remove Saved Password for Linked Table

Posted on 2008-10-24
4
464 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 50

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

696 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