Is it possible to access an ACCESS DB with password protected?

Z

ZhangZQ

Is it possible to access an ACCESS DB with password protected?
I have the user/password information of an access db, how can I access it by
System.Data.OleDb ?

Another question is, is it possible to compact a access db by a
System.Data.OleDb ?


Thank you very much!
ZhangZQ
 
C

Chris Mayers

username/password goes as part of the connection string when attempting to
access password protected database.
Off the top of my head:
.....User Id = <username>;password=<password>....

Not sure about compacting an Access DB, that is a specific Access function,
rather than an OleDb one...

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top