CREATE TABLE [D111-10-1].[DSA_OPUSBudgetter_Aarsopdelt_Temp](
  [CMMT_ITEM0] [varchar](24) COLLATE Norwegian_100_CI_AS NULL,
  [COSTCENTER0] [varchar](10) COLLATE Norwegian_100_CI_AS NULL,
  [COSTELMNT0] [varchar](10) COLLATE Norwegian_100_CI_AS NULL,
  [FISCYEAR0] [int] NULL,
  [FUND0] [varchar](10) COLLATE Norwegian_100_CI_AS NULL,
  [FUNDS_CTR0] [varchar](16) COLLATE Norwegian_100_CI_AS NULL,
  [PROFIT_CTR0] [varchar](10) COLLATE Norwegian_100_CI_AS NULL,
  [PU_MEASURE0] [varchar](24) COLLATE Norwegian_100_CI_AS NULL,
  [WBS_ELEMT0] [varchar](24) COLLATE Norwegian_100_CI_AS NULL,
  [ZIART_IM] [varchar](2) COLLATE Norwegian_100_CI_AS NULL,
  [ZIASTE_IM] [int] NULL,
  [ZIDRANST] [varchar](1) COLLATE Norwegian_100_CI_AS NULL,
  [ZIEJERFH] [varchar](1) COLLATE Norwegian_100_CI_AS NULL,
  [ZIFUNKT] [varchar](6) COLLATE Norwegian_100_CI_AS NULL,
  [ZIGRUPP] [varchar](6) COLLATE Norwegian_100_CI_AS NULL,
  [ZIBUDTRA] [nvarchar](4) COLLATE Norwegian_100_CI_AS NULL,
  [ZIGOD_STA] [nvarchar](1) COLLATE Norwegian_100_CI_AS NULL,
  [AggBeløbAar] [decimal](18,2) NULL,
  [SYS_KommuneId] [int] NULL,
  [SYS_BatchDate] [datetime2](3) NULL,
  [SYS_RowID] [bigint] identity(1,1) NOT NULL,
  [SYS_ExtractDate] [datetime2](3) NULL,
  [SYS_SourceFileID] [varchar](80) COLLATE Norwegian_100_CI_AS NULL,
  [SYS_VersionID] [bigint] NULL,
  [SYS_Checksum] [bigint] NULL,
  [SYS_ExecutionId] [bigint] NULL
) 
ON [DSA]
--with (data_compression = page)
GO

CREATE UNIQUE CLUSTERED INDEX [IDX_CL_D111-10-1_DSA_OPUSBudgetter_Aarsopdelt_Temp]
On [D111-10-1].[DSA_OPUSBudgetter_Aarsopdelt_Temp] ([SYS_KommuneId], [SYS_BatchDate], [SYS_RowID])
--with (data_compression = page)
ON [DSA]
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'CMMT_ITEM0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'COSTCENTER0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'COSTELMNT0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'FISCYEAR0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'FUND0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'FUNDS_CTR0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'PROFIT_CTR0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'PU_MEASURE0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'WBS_ELEMT0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'ZIART_IM';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'ZIASTE_IM';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'ZIDRANST';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'ZIEJERFH';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'ZIFUNKT';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'ZIGRUPP';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'ZIBUDTRA';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'ZIGOD_STA';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'AggBeløbAar';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Dette er en teknisk Kolonne i FLIS. Indeholder nummeret på den kommune, som rækken tilhører', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'SYS_KommuneId';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Dette er en teknisk Kolonne i FLIS. Indeholder information om, hvilken batch rækken er indlæst i', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'SYS_BatchDate';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Dette er en teknisk Kolonne i FLIS. Indeholder et fortløbende nummer, så alle rækker i tabellen har et unikt nummer', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'SYS_RowID';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Dette er en teknisk Kolonne i FLIS. Indeholder det dato stempel, som kildefilen er markeret med', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'SYS_ExtractDate';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Dette er en teknisk Kolonne i FLIS. Indeholder ID for den primære snitflade, hvor data i rækken stammer fra', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'SYS_SourceFileID';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Dette er en teknisk Kolonne i FLIS. Indeholder et versionsnummer for den pågældende række', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'SYS_VersionID';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Dette er en teknisk Kolonne i FLIS. Indeholder cheksum info', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'SYS_Checksum';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'SysExecutionId', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp', 
@level2type = N'COLUMN', @level2name = N'SYS_ExecutionId';
GO

EXEC sys.sp_addextendedproperty 
@name = N'DataArea', 
@value = N'generel', 
@level0type = N'SCHEMA', @level0name = N'D111-10-1', 
@level1type = N'TABLE',  @level1name = N'DSA_OPUSBudgetter_Aarsopdelt_Temp';
GO

