LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to creat user and set password to Access Database?

Solved!
Go to solution

Right now, i can only open an acess database file using password if it has. But I wonder how to set user and password to the database file? Thanks!

 

微信图片_20170915195444.png

 

 

0 Kudos
Message 1 of 5
(2,864 Views)

It's not clear what you want to do.

 

Connect with a used ID and password? Create constants for the user ID and password input.

 

Protect the database with a password? Google, it's an Access question, not a LabVIEW question.

0 Kudos
Message 2 of 5
(2,852 Views)

Sorry, I mean is there a way to set the password of .mdb file dynamicly? If i creat a .mdb file and want to set a password to it.

NI Database Tool Kit has a way to access .mdb file with password protected, but no way to set the password. Thanks!

0 Kudos
Message 3 of 5
(2,798 Views)
Solution
Accepted by topic author bigbigsong

See this post (VB).

 

Apparently you need to execute the query:
"ALTER DATABASE PASSWORD [newPassword][OldPassword]"

 

More info on MSDN (ALTER USER or DATABASE Statement).

0 Kudos
Message 4 of 5
(2,792 Views)

Thank you so much! 

0 Kudos
Message 5 of 5
(2,774 Views)