计划权限 [英] Program Permissions
问题描述
我正在vb.net中创建一个应用程序,该应用程序访问其他学生无权访问的驱动器上的数据库.如果该程序在这些学生帐户之一下运行,将无法正确运行.我该怎么做,这样程序才能以任何帐户访问数据库?
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?
推荐答案
他们需要访问该驱动器,或者需要访问的驱动器上的mdb副本.唯一的其他选择是让代码以具有许可权的其他用户身份运行(不建议),或者进入客户端服务器. IE.您编写了可以访问数据库的服务,然后您现在正在与之通信的应用程序.相当多的工作和学习.
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.
这篇关于计划权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!