dbTalk Databases Forums  

Problem with start of the week (DATEFIRST)

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


Discuss Problem with start of the week (DATEFIRST) in the microsoft.public.sqlserver.olap forum.



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

Default Problem with start of the week (DATEFIRST) - 09-04-2006 , 11:15 PM






Hi,

When we view data within a specific cube, it has the start of each week set
to a Sunday. When we look at another cube (built from the same SQL 2005
database), it has Monday as the start of it's weeks. Is this possible? I
thought the DATEFIRST option was specific to a user's login, but somehow the
same login in this case is getting different results from two different cubes.

The cube is based on a view, and so we can't use SET statements to set the
DATEFIRST option at that stage. Is there some other way to standardise this
across all cubes for all users? The default language is US English, and all
users/logins use the default language (ie. none have been changed).

Dave

Reply With Quote
  #2  
Old   
amish
 
Posts: n/a

Default Re: Problem with start of the week (DATEFIRST) - 09-05-2006 , 04:52 AM







DavidCur wrote:

Quote:
Hi,

When we view data within a specific cube, it has the start of each week set
to a Sunday. When we look at another cube (built from the same SQL 2005
database), it has Monday as the start of it's weeks. Is this possible? I
thought the DATEFIRST option was specific to a user's login, but somehow the
same login in this case is getting different results from two different cubes.

The cube is based on a view, and so we can't use SET statements to set the
DATEFIRST option at that stage. Is there some other way to standardise this
across all cubes for all users? The default language is US English, and all
users/logins use the default language (ie. none have been changed).

Dave
In your dimension property go to source , go to firstdayofweek property
and set frist day of week

Regards
Amish Shah



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.