Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save strvmarv/58fd5739f4ad0258163d277f11f03c9b to your computer and use it in GitHub Desktop.
Save strvmarv/58fd5739f4ad0258163d277f11f03c9b to your computer and use it in GitHub Desktop.
CREATE TABLE [dbo].[Imagination_Partitioned](
[Partition] [smallint] NOT NULL DEFAULT [dbo].[udf_GetDayOfTheYear](DEFAULT),
[Id] [int] NOT NULL,
[DateUtc] [datetimeoffset](7) NOT NULL,
[Value] [int] NOT NULL
CONSTRAINT [PK_Imagination_Partitioned] PRIMARY KEY CLUSTERED
(
[Partition] ASC,
[Id] ASC
)ON ps_DayOfTheYear (Partition)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment