how to reset week start date

  • hi all,

    In my system @@datefirst giving 7. I want to change it to 5

    how can i do this

    thanks in advance

    Regards

    Durgesh J

  • SET DATEFIRST 5

    "Keep Trying"

  • set datefirst 5 will do that.

    But it is session based. If you open another session, you can see 7.

    karthik

  • Yes its only for the current session. DateFirst acutally depends on the language chosen. For english it 7 - Sunday.

    "Keep Trying"

  • Chirag (3/9/2009)


    Yes its only for the current session. DateFirst acutally depends on the language chosen. For english it 7 - Sunday.

    For English in Australia it's 1 - Monday.

    It depends not on language but on chosen locale.

    _____________
    Code for TallyGenerator

  • is there any option to set the datefirst server level instead of sesssion level?

    karthik

  • You can set the default language for the server: sp_configure;

    or set the accounts default language: ALTER LOGIN SET DEFAULT_LANGUAGE;

    or the current process, as seen above.

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply