Click here to Skip to main content
15,312,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
If the database is protected with a password, how can we add it in the connection code?

What I have tried:

If the database is protected with a password, how can we add it in the connection code?
Posted
Updated 25-Jan-21 9:22am
Comments
Dave Kreskowiak 25-Jan-21 18:09pm
   
Next time, you might want to add which database engine you're using. The assumption is Access.

   
v2
الكود :

Dim FileSource As String
FileSource = App.Path & "\DATABASE.mdb
;Persist Security Info=False;Jet OLEDB:Database Password=123456"
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900