[英]SSAS OLAP Cube Output Date Format mm/dd/yy to yyyy-MM-dd
I have deployed an SQL Server 2012 on a Windows Server en-us. 我已经在Windows Server上部署了SQL Server 2012。
Now my dates on Analysis services are in this format MM/dd/yyyy. 现在,我在Analysis Services上的日期格式为MM / dd / yyyy。 the company is not American, therefore I would like to change it to yyyy-MM-dd.
该公司不是美国公司,因此我想将其更改为yyyy-MM-dd。
Everything seems to be properly configured, however, SSAS is refusing to output the dates in the desired format. 一切似乎都已正确配置,但是,SSAS拒绝以所需格式输出日期。
an easy and fast way is to create a computed column on DimDate in SSMS, and specify this a name value for your datekey. 一种简单快捷的方法是在SSMS中的DimDate上创建一个计算列,并为此日期键指定一个名称值。 Let me if that works.
如果可行,请让我。
ALTER TABLE [Dim].[Date] ADD AlternateDateFormat AS convert(date,[FullDate], 111);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.