简体   繁体   中英

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.

Now my dates on Analysis services are in this format MM/dd/yyyy. the company is not American, therefore I would like to change it to yyyy-MM-dd.

Everything seems to be properly configured, however, SSAS is refusing to output the dates in the desired format.

Query on SQL Database engine

Windows Server Regional Settings

an easy and fast way is to create a computed column on DimDate in SSMS, and specify this a name value for your datekey. Let me if that works.

ALTER TABLE [Dim].[Date] ADD AlternateDateFormat AS convert(date,[FullDate], 111);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM