Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UnSet Access database Password

Status
Not open for further replies.

rann

Programmer
Sep 13, 2001
86
US
Hi,
I need to Unset Access Database password using
VB DAO or ADO.
How do i unset access password.

I know you can change the password using

Set datInfo = OpenDatabase("mydatabase")
datInfo.newpassword("pwdold","pwdnew")

Any help or links would be appreciated,

Thanks in Advance,

Rann.

 
Just send an empty string as pwdnew Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Hi,

1)How to access this password protected file thru VB code.
(Connection String).

You can use the below connection string to access a MSAccess
database.


gstrOLEPlanManager = "Provider=" & _
"Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strYourDatabasePath & ";" & _
"Jet OLEDB:Database Password=" & strYourPassword & ";"

2)Is it possible to set pwd for a sql or oracle db and what will be the Connection string

The connection string would be similiar but the provider type might change i dont know the exact connection syntax for Oracle. You can even use a DSN name to connect to oracle or sql.

Check out this link for oracle connection strings.


I hope this helps,

Rann.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top