Skip to content

Instantly share code, notes, and snippets.

@stuartf7
Created February 2, 2012 23:16
Show Gist options
  • Save stuartf7/1726391 to your computer and use it in GitHub Desktop.
Save stuartf7/1726391 to your computer and use it in GitHub Desktop.
Example of how to set the first day of the week in SQL
-- Set the first day of the week to monday
SET DATEFIRST 1
-- Set the first day of the week to tuesday
SET DATEFIRST 2
-- Set the first day of the week to sunday
SET DATEFIRST 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment