EnVisageOnline/Beta/Database/Scripts/20140603/02_FiscalCalendar_Recreate.sql

34 lines
883 B
Transact-SQL

USE [envisage]
GO
/****** Object: Table [dbo].[FiscalCalendar] Script Date: 03.06.2014 18:24:31 ******/
if exists (select * from sys.all_objects where object_id = OBJECT_ID('FiscalCalendar') and type = 'U')
begin
DROP TABLE [dbo].[FiscalCalendar]
end
GO
/****** Object: Table [dbo].[FiscalCalendar] Script Date: 03.06.2014 18:24:31 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FiscalCalendar](
[Id] [uniqueidentifier] NOT NULL,
[Type] [smallint] NOT NULL,
[CurrentYearStartDate] [datetime] NOT NULL,
[WeekEnding] [smallint] NOT NULL,
[WeekEndingType] [smallint] NOT NULL,
[EffectiveStartDate] [datetime] NULL,
CONSTRAINT [PK_FiscalCalendar] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO