Solved

Pass through query encrypt password

Posted on 2008-11-03
6
946 Views
Last Modified: 2012-06-22
I have an application with many pass-through queries with the password saved in the odbc connection.  

How do i prevent the user from being able to see the password.  

thanks

dave
0
Comment
Question by:david_88
[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
  • 3
  • 3
6 Comments
 
LVL 34

Expert Comment

by:jefftwilley
ID: 22868267
Hi dave,
The connection string is kept in the mSysObjects table which is a system table. Just make sure you disable shift keys in your database and hide the mSysObjects table. A savy user may still be able to query the table to see the data. In that case, you can create the connection strings in code when you link the tables and either code in the credentials or mask them in a data table using Access's Password masking feature.
J
0
 

Author Comment

by:david_88
ID: 22868439
sounds good i have found a link to dsable the shift key

how do i hide the msSysobjects table i cant see this table anyaway ?

thanks

dave
0
 
LVL 34

Expert Comment

by:jefftwilley
ID: 22869438
Its a setting option under Tools/Options. Hide System Objects.

Remember, anything stored in a table in access is available via query. So the only real security you can have when it comes to passwords is either to store them in a Password formatted field, or code them.

Access wasn't' built to be bulletproof...so there is some risk in just hiding objects.

If you code the credentials, you can create a mde out of the DB and your users won't be able to get to the code.

Hope this helps.
J
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:david_88
ID: 22874430
well it needs to be relativley secure as it has access to important tables which i dont want people running any query they want on the orders table.

i have 2 apps with about 20 pass-through query's in total what would be the best method to make this secure.  I dont mind either of the 2 options you have mentiond

dave
0
 
LVL 34

Accepted Solution

by:
jefftwilley earned 500 total points
ID: 22878279
When you set up your connection string, you use code correct?

example:

        sConn = "ODBC;"
        sConn = sConn & "DSN=" & rsDatabaseInfo!DSN & ";"
        sConn = sConn & "APP=Microsoft Access;"
        sConn = sConn & "DATABASE=" & rsDatabaseInfo!DBName & ";"
        sConn = sConn & "UID=" & rsDatabaseInfo!UID & ";"
        sConn = sConn & "PWD=" & rsDatabaseInfo!PWD & ";"

Any/all of the fields above can be stored in your table as encrypted data.

When you disable the Shift keys and the Tools Menu when your app opens, a user wouldn't be able to make the System objects visible to modify them. When you create a .mde out of your databases, the user is not able to get to the actual code. That's about as secure as you can get with Access.
J
0
 

Author Closing Comment

by:david_88
ID: 31512747
yeah have gone with this idea as i can see alot of benefits

cheers
dave
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
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…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

626 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