Solved

Using UDL file for Connecting Access Database

Posted on 2004-08-13
2
614 Views
Last Modified: 2008-01-09
Hi
I am using a UDL file to connect to MS Access database. Currently my database is not password protected. I need to know how can access password protected MDB and access the same using UDL. Please note that I do not want to specify the Password in UDL file, I want to hardcode the same within the application in Connection String.

Currently my string looks like

constr = "File Name = " & UdlFileName

I do not want to specify password in UDL as one can see that if they opened that in Notepad.

Please help as soon as possible.

Regds
Ashish P
0
Comment
Question by:ashishpayasi
2 Comments
 
LVL 17

Accepted Solution

by:
AerosSaga earned 125 total points
ID: 11792056
the connection string should be constructed like so:

#   Standard security:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;User Id=admin;Password=;"


#  Workgroup (system database):
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:System Database=system.mdw;"


#  With password:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;"

Regards,

Aeros
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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