问题
I am creating an application in vb.net that accesses a database on a drive that other students do not have access to. The program will not run correctly if it is run under one of these students accounts. How can I make it so the program will access the db under any account?
回答1:
Well they need access to that drive, or a copy of the mdb on a drive they do have access to. Only other option would be to have the code run as an other user with permission (not recommended), or to go client server. I.e. you write a service that can access the db, and then the app you have now talks to that. Fair bit of work and learning that though.
回答2:
To give other students the ability to connect to your Access Databases you'll need to set File Permissions Read/Write or Full control.
来源:https://stackoverflow.com/questions/9880994/program-permissions