dbTalk Databases Forums  

set the first day of the week to 1

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss set the first day of the week to 1 in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Oleg Boyko
 
Posts: n/a

Default set the first day of the week to 1 - 07-13-2004 , 04:52 AM






Hi,

I have time dimension (like Year, Week) in my cube. Default first day of the
week is set to 7 (select @@DateFirst)
How can I change this value to 1 permanently.

SET DATEFIRST 1 works only for current connection

Best regards
Oleg



Reply With Quote
  #2  
Old   
Jacco Schalkwijk
 
Posts: n/a

Default Re: set the first day of the week to 1 - 07-13-2004 , 05:06 AM






The most straightforward is probably to change the language for the login
that you use to connect to SQL Server to one that has Monday as the first
day of the week. You can find which languages use Monday as the first day of
the week in the master.dbo.syslanguages table.

--
Jacco Schalkwijk
SQL Server MVP


"Oleg Boyko" <olb (AT) bigfoot (DOT) com> wrote

Quote:
Hi,

I have time dimension (like Year, Week) in my cube. Default first day of
the
week is set to 7 (select @@DateFirst)
How can I change this value to 1 permanently.

SET DATEFIRST 1 works only for current connection

Best regards
Oleg





Reply With Quote
  #3  
Old   
Smuddi
 
Posts: n/a

Default RE: set the first day of the week to 1 - 07-13-2004 , 06:33 AM



Hi Oleg,

I had a similar Problem and found out that
the functions
DatePart and DateName
for the part "week" had different results.
I also wanted "my" weeks to start on mondays,
so I changed the MemberKey-Column-Property for
"week" in my Time-Dimension from "DatePart(...)"
to "DateName(...)" and everything worked fine.
(Make sure that the MemberName-Property uses the same function.)

Does that solve your problem ?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.