SQL Server Analysis Service 2008 R2 LONG CONTINUOUS 数据类型
我一直在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我想通了。它是 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.