SQL Server Analysis Service 2008 R2 LONG CONTINUOUS 数据类型

发布于 2024-11-25 08:50:09 字数 320 浏览 4 评论 0原文

我一直在 SQL Server Analysis Services 2008 R2 中搜索LONG CONTINUOUS 的数据类型。谁能指出我的文档吗?

我找到了数据类型的描述,但它在实际数据。

C# 的等价物是什么?

我使用的是 AdomdDataReader.GetInt32(),但我增加了预测,现在由于数据“太小”或“太大”而返回了一些记录。

I've been seraching for the data type of LONG CONTINUOUS in SQL Server Analysis Services 2008 R2. Can anyone point me to the documentation?

I found a description of the data types, but it said nothing on the actual data.

What is the C# equivalent?

I was using AdomdDataReader.GetInt32(), but I increased the predictions and now a few records came back as the data was either "too small" or "too large".

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

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

发布评论

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

评论(1

心的位置 2024-12-02 08:50:09

好吧,我想通了。它是 Int64,因此可以将其检索为 AdomdDataReader.GetInt32() 或 AdomdDataReader.GetInt64()。显然 long 是 Int64,这应该是我从一开始的答案。问题是在过去我有其他数据类型并且在不放置特定数据类型时遇到了问题,但我想在这种情况下我将它作为较低的数据类型(int32 intsead of int64),它允许我这样做。过去,我曾尝试通过调用 int32 来获取 int16,但这给我带来了问题。所以是的,问题解决了。现在我的下一个问题是为什么分析服务会生成如此巨大的数字,但我猜这不是针对这个问题的,呵呵。

Okay I figured it out. It is an Int64 so retrieving it as AdomdDataReader.GetInt32() or AdomdDataReader.GetInt64() will work. Obviously a long is a Int64, that should've been my answer from the start. Problem is in the past I've had other data types and had had problems with not putting the specific data type, but I guess in this case I was putting it as a lower data type (int32 intsead of int64) and it allowed me to do that. In the past I had tried getting a int16 by calling it int32 and that gave me problems. So yes problem resolved. Now my next issues is why the analysis service generating such a huge number, but guess that's not for this question heh.

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