该查询包含 XXXXXName 参数,该参数未声明。 SSRS2008/MDX查询

发布于 2024-08-28 23:16:36 字数 170 浏览 3 评论 0原文

解析器:查询包含 XXXXXName 参数,该参数未声明。 (msmgdsrv)

我不知道为什么我总是收到此错误。当我在查询设计器中更改 MDX 并尝试从查询设计器中确定时,会发生这种情况。

奇怪的是,该参数确实存在,我可以在数据集对话框的参数部分看到它。我在对查询执行任何其他操作之前创建它。

Parser: The query contains the XXXXXName parameter, which is not declared. (msmgdsrv)

I have no idea why I keep getting this error. It occurs when I change the MDX in the query designer and trying OKing out of the query designer.

The strange thing is that the parameter DOES exist, I can see it in the parameters section of the dataset dialog. I am creating it before I do anything else with the query.

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

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

发布评论

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

评论(2

谁把谁当真 2024-09-04 23:16:36

尽管看似直观的做法是在“数据集属性”窗口中添加参数,但实际上由于某些奇怪的原因,这并没有声明查询的参数。

要添加参数,请单击“查询设计器”窗口中的“参数”工具栏按钮。从那里您可以添加参数名称和默认值。

输入图片此处描述

完成此操作后,全局参数列表将包含该参数并允许您使用表达式等。

Although the seemingly intuitive thing to do is add the Parameter in the Dataset Properties window, this actually does not declare the parameter for the query for some odd reason.

To add the parameter, click the Parameters toolbar button in the Query Designer window. From there you can add your parameter names and default values.

enter image description here

Once you've done this, the global parameter list will contain that parameter and allow you to use expressions etc..

月隐月明月朦胧 2024-09-04 23:16:36

参数是在报告级别定义的吗?这可能就是所缺少的。

Is the parameter defined at the report level? That might be what's missing.

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