We help IT Professionals succeed at work.

How may I MS Access password from a C# app?

i950
i950 asked
on
698 Views
Last Modified: 2012-05-05
Hello,

I want to set a password for my MS Access database from my C# application.

How may I do that?

Thanks.
Comment
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
...and declare connString with a lowercase c.  You'll get a comipile error otherwise.  I used a hard-coded connString when I tested this and commented out the line I eventually put in the code, so my compiler didn't catch it.  Sorry about that.
Also you need:

using System.Data.OleDb;

...at the top of your code file.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.