在 Visual Studio 中设置 SQL CLR 程序集 PERMISSION_SET
我是否可以让 Visual Studio 中的部署/脚本生成我的程序集,并将“PERMISSION_SET”设置为“EXTERNAL_ACCESS”而不是“SAFE”。显然,我可以构建项目,然后修改脚本,但我希望将其作为一个设置,以便我可以重新构建然后部署到我的开发实例。
可能是我正在寻找的东西,但我似乎找不到可以在哪里设置用于程序集创建的构建属性。
谢谢,
S
Is it possible for me to have the deployment / scripts within Visual Studio generate my assembly with "PERMISSION_SET" set to "EXTERNAL_ACCESS" instead of "SAFE". I can obviously build the project and then modify the script, but I would like to have that be a setting so I can re-build then deploy to my Development instance.
Probably something I am looking over, but I can't seem to find where I could set that build property for the assembly creation.
Thanks,
S
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当程序集与 SSAS 项目一起部署时(在一个解决方案中),您可以更改权限:
When the assembly is deployed together with the SSAS project (in one solution) you can change the permission:
Visual Studio 2015和SQL Server 2014 Visual Studio项目中的选项似乎不起作用。我建议使用简单的命令向部署添加一个新脚本,
这也意味着您可以在每个程序集的基础上更改权限
Visual studio 2015 and sql server 2014 the option in the visual studio project does not seem to work. I would suggest adding a new script to the deployment with the simple command
using this also means you can change the perms on a per assembly basis
如果在 Visual Studio 中找到该设置。您可以进入项目属性->数据库 您可以在此处选择要部署到的数据库以及 CLR 程序集的权限级别。
--S
If found the setting in Visual Studio. You can go to Project Properties -> Database here you select the Database to deploy to along with the Permission level of the CLR Assembly.
--S