在 Visual Studio 中设置 SQL CLR 程序集 PERMISSION_SET

发布于 2024-12-29 06:42:43 字数 214 浏览 4 评论 0原文

我是否可以让 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

如日中天 2025-01-05 06:42:43

当程序集与 SSAS 项目一起部署时(在一个解决方案中),您可以更改权限:Solution explorer

程序集属性

When the assembly is deployed together with the SSAS project (in one solution) you can change the permission:Solution explorer

Assembly properties

¢好甜 2025-01-05 06:42:43

Visual Studio 2015和SQL Server 2014 Visual Studio项目中的选项似乎不起作用。我建议使用简单的命令向部署添加一个新脚本,

ALTER ASSEMBLY {assembly name} with PERMISSION_SET = UNSAFE / SAFE / EXTERNAL_ACCESS

这也意味着您可以在每个程序集的基础上更改权限

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

ALTER ASSEMBLY {assembly name} with PERMISSION_SET = UNSAFE / SAFE / EXTERNAL_ACCESS

using this also means you can change the perms on a per assembly basis

无所谓啦 2025-01-05 06:42:43

如果在 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文