创建 CLR 函数时出错

发布于 2024-07-26 08:16:00 字数 300 浏览 1 评论 0原文

我创建了一个包含 2 个静态方法的 C# 类,并在 SQL 2005 中成功创建了一个程序集。当我尝试从该程序集创建表值函数时,出现以下错误:

消息 6509,级别 16,状态 36,过程,第 2 行
从程序集“”收集元数据时发生错误,HRESULT 0x80004005。

我们还有其他 CLR 函数,它们位于同一个 dll 中,并且似乎工作正常。 我试图模拟其他函数正在做什么,但我似乎无法让这个函数工作。

所有在线文档似乎都没有帮助

I've created an C# class that contains 2 static method and I successfully created an Assembly in SQL 2005. When I try to create a table-valued function from that Assembly I get the following error:

Msg 6509, Level 16, State 36, Procedure , Line 2
An error occurred while gathering metadata from assembly '' with HRESULT 0x80004005.

We have other CLR functions that are that are with in the same dll and seem to work fine. I tried to emulate what the other functions are doing, but I can't seem to get this function to work.

All the documentation online doesn't seem to help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

只为守护你 2024-08-02 08:16:00

我有同样的问题。 我将 C# 方法中的返回值更改为由 DataTable 和 WALLLLLA 组成的 IEnumerable。
没问题。

祝你好运查

多克

I had the same problem. I changed the return value in the C# method to IEnumerable insted of DataTable and WALLLLLA.
no problem.

GOOD LUCK

tsadok

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