当数据库模式发生变化时,如何在WF中使用SqlWorkflowPersistenceService?

发布于 2024-09-25 02:57:59 字数 280 浏览 0 评论 0原文

由于某些原因,数据库的模式不是dbo。在WF中使用SqlWorkflowPersistenceService时,会出现错误“找不到存储过程'RetrieveNonblockingInstanceStateIds'”。但是如果我将过程从“XXX.RetrieveNonblockingInstanceStateIds”更新为“dbo.RetrieveNonblockingInstanceStateIds” 就可以了。如何解决呢?或者如何定义WF中的默认模式?我已将模式 XXX 设置为 SQL 2005 中 asp.net 当前使用登录的默认模式

For some reasons,the schemas of database is not dbo. When using SqlWorkflowPersistenceService in WF,there would be an error found "cannnot find Stored procedure 'RetrieveNonblockingInstanceStateIds'".But if I update the procedure from "XXX.RetrieveNonblockingInstanceStateIds" to "dbo.RetrieveNonblockingInstanceStateIds"
there would be ok.How to fix it? Or how to define the default schemas in WF? I have set schemas XXX as the default schemas in current use login by asp.net in SQL 2005

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

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

发布评论

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

评论(1

一笑百媚生 2024-10-02 02:57:59

我已经解决了。
我在 SQL 中创建了一个没有 sa 权限的用户
可以找到存储过程
看来,如果你的帐户包含 sa,即使你设置了它,你的默认架构也不能是个人的。

I have solved it.
I create a user without sa permissions in SQL
The stored procedure can be found
It seems that if your accout contains sa, your default schemas cannot be personal even if you have set it.

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