CREATE TABLE [D001-18-1].[DSAHIST_ZD2I2_Indmeldelse](
  [TIMESTAMP] [varchar](15) COLLATE Norwegian_100_CI_AS NULL,
  [DATAPAKID] [varchar](6) COLLATE Norwegian_100_CI_AS NULL,
  [PARTNO] [int] NULL,
  [RECORD] [int] NULL,
  [ZIKOM] [varchar](5) COLLATE Norwegian_100_CI_AS NULL,
  [CALDAY0] [datetime2](3) NULL,
  [ZIPNRINSB] [varchar](11) COLLATE Norwegian_100_CI_AS NULL,
  [ZIINST] [bigint] NULL,
  [ZIKODPAST] [bigint] NULL,
  [ZIALDFRA] [bigint] NULL,
  [ZIINDMDAT] [datetime2](3) NULL,
  [RECORDMODE0] [varchar](1) COLLATE Norwegian_100_CI_AS NULL,
  [CALYEAR0] [int] NULL,
  [CALMONTH20] [int] NULL,
  [CALMONTH0] [int] NULL,
  [FISCPER0] [int] NULL,
  [FISCVARNT0] [varchar](2) COLLATE Norwegian_100_CI_AS NULL,
  [FISCPER30] [int] NULL,
  [FISCYEAR0] [int] NULL,
  [HALFYEAR10] [int] NULL,
  [CALQUART10] [int] NULL,
  [ZIBOFICPE] [varchar](6) COLLATE Norwegian_100_CI_AS NULL,
  [ORGUNIT0] [int] NULL,
  [ZIOU_BO] [int] NULL,
  [ZIADMID] [int] NULL,
  [ZIUDTDATO] [datetime2](3) NULL,
  [ZIALDTIL] [int] NULL,
  [ZIKALDSAG] [int] NULL,
  [ZIKOMNR] [varchar](5) COLLATE Norwegian_100_CI_AS NULL,
  [ZIFREMKOM] [varchar](1) COLLATE Norwegian_100_CI_AS NULL,
  [ZIPSEUDIS] [int] NULL,
  [ZISELVDIS] [varchar](4) COLLATE Norwegian_100_CI_AS NULL,
  [ZISTBOSKA] [int] NULL,
  [ZIALDAAR] [int] NULL,
  [ZIALDAARM] [int] NULL,
  [ZIALDMD] [int] NULL,
  [ZIALDSVAR] [varchar](1) COLLATE Norwegian_100_CI_AS NULL,
  [ZIUDMDAT] [datetime2](3) NULL,
  [ZIFORVUDM] [datetime2](3) NULL,
  [ZIINDMLDT] [decimal](17,3) NULL,
  [UNIT0] [decimal](3,0) NULL,
  [ZIINDMLS] [decimal](17,3) NULL,
  [ZIUDMLS] [decimal](17,3) NULL,
  [ZIOFRIQTY] [decimal](17,3) NULL,
  [ZIOFRIAMT] [decimal](17,2) NULL,
  [CURRENCY0] [varchar](5) COLLATE Norwegian_100_CI_AS NULL,
  [ZISFRIQTY] [decimal](17,3) NULL,
  [ZISFRIAMT] [decimal](17,2) NULL,
  [ZISOSQTY] [decimal](17,3) NULL,
  [ZISOSAMT] [decimal](17,2) NULL,
  [ZIOVRQTY] [decimal](17,3) NULL,
  [ZIOVRAMT] [decimal](17,2) NULL,
  [ZIBELOBPA] [decimal](17,2) NULL,
  [ZIBELOBDR] [decimal](17,2) NULL,
  [ZITFTOTQT] [decimal](17,3) NULL,
  [ZITFTOTAM] [decimal](17,2) NULL,
  [ZIDRTOTAL] [decimal](17,2) NULL,
  [ZIPATOTAL] [decimal](17,2) NULL,
  [ZISENINDM] [decimal](17,3) NULL,
  [ZIINSFST] [decimal](17,3) NULL,
  [ZIINMFST] [decimal](17,3) NULL,
  [ZIUDFST] [decimal](17,3) NULL,
  [ZIUDLST] [decimal](17,3) 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_RettelserTidAngivelse] [datetime2](3) NULL,
  [SYS_VersionID] [bigint] NULL,
  [SYS_Checksum] AS (CONVERT([bigint],hashbytes('SHA2_256',concat([TIMESTAMP],[DATAPAKID],[PARTNO],[RECORD],[ZIKOM],[CALDAY0],[ZIPNRINSB],[ZIINST],[ZIKODPAST],[ZIALDFRA],[ZIINDMDAT],[RECORDMODE0],[CALYEAR0],[CALMONTH20],[CALMONTH0],[FISCPER0],[FISCVARNT0],[FISCPER30],[FISCYEAR0],[HALFYEAR10],[CALQUART10],[ZIBOFICPE],[ORGUNIT0],[ZIOU_BO],[ZIADMID],[ZIUDTDATO],[ZIALDTIL],[ZIKALDSAG],[ZIKOMNR],[ZIFREMKOM],[ZIPSEUDIS],[ZISELVDIS],[ZISTBOSKA],[ZIALDAAR],[ZIALDAARM],[ZIALDMD],[ZIALDSVAR],[ZIUDMDAT],[ZIFORVUDM],[ZIINDMLDT],[UNIT0],[ZIINDMLS],[ZIUDMLS],[ZIOFRIQTY],[ZIOFRIAMT],[CURRENCY0],[ZISFRIQTY],[ZISFRIAMT],[ZISOSQTY],[ZISOSAMT],[ZIOVRQTY],[ZIOVRAMT],[ZIBELOBPA],[ZIBELOBDR],[ZITFTOTQT],[ZITFTOTAM],[ZIDRTOTAL],[ZIPATOTAL],[ZISENINDM],[ZIINSFST],[ZIINMFST],[ZIUDFST],[ZIUDLST])),0)) PERSISTED,
  [SYS_ExecutionId] [bigint] NULL,
  [SYS_DataDeliveryBatchId_Create] [bigint] NULL
) 
on sys_batch_date_sc(SYS_BatchDate)
GO

CREATE UNIQUE CLUSTERED INDEX [IDX_CL_D001-18-1_DSAHIST_ZD2I2_Indmeldelse] On [D001-18-1].[DSAHIST_ZD2I2_Indmeldelse] (SYS_BatchDate, SYS_KommuneId, SYS_RowID) with (data_compression = page, STATISTICS_INCREMENTAL = ON) on sys_batch_date_sc(SYS_BatchDate);
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Indmeldelser i daginstitutioner.', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Timestamp', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'TIMESTAMP';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'DatapakkeID', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'DATAPAKID';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Partno', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'PARTNO';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'RecordNO', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'RECORD';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Kunde identifikation', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIKOM';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Kalenderdag', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'CALDAY0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Barnets CPRnr', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIPNRINSB';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Institution', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIINST';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Pasningsmodul', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIKODPAST';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Fra alder', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIALDFRA';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Indmeldelsesdato', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIINDMDAT';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'BW-deltaprocedure: Opdateringsmode', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'RECORDMODE0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Kalenderår', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'CALYEAR0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Kalendermåned', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'CALMONTH20';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Kalenderår/måned', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'CALMONTH0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Regnskabsår/periode', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'FISCPER0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Regnskabsårsvariant', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'FISCVARNT0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Bogføringsperiode', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'FISCPER30';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Regnskabsår', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'FISCYEAR0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Halvår', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'HALFYEAR10';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Kvartal', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'CALQUART10';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Regnskabsår/måned', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIBOFICPE';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Organisatorisk enhed', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ORGUNIT0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Organisatorisk Enhed til BO', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIOU_BO';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Administrativ Enhed', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIADMID';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Udtræksdato', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIUDTDATO';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Til alder', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIALDTIL';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Journalnummer', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIKALDSAG';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Kommune', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIKOMNR';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Fremmed kommune', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIFREMKOM';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Distriktstype', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIPSEUDIS';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Distrikt', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZISELVDIS';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Statsborgerskab', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZISTBOSKA';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Alder i hele år', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIALDAAR';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Alder i md over hele år', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIALDAARM';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Alder i måneder', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIALDMD';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Alderssvarende plads', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIALDSVAR';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Udmeldelsesdato', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIUDMDAT';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Forventet udmeld.dato', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIFORVUDM';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Antal indmeldte, periodens sidste dag', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIINDMLDT';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Mængdeenhed', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'UNIT0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Antal indmeldelser, hele perioden', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIINDMLS';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Antal udmeldelser, hele perioden', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIUDMLS';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Øk. fripladstilskud, antal', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIOFRIQTY';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Øk. fripladstilskud, beløb', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIOFRIAMT';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Valutanøgle', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'CURRENCY0';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Soc. fripladstilskud, antal', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZISFRIQTY';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Soc. fripladstilskud, beløb', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZISFRIAMT';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Søskendetilskud, antal', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZISOSQTY';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Søskendetilskud, beløb', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZISOSAMT';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Øvrige TF, antal', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIOVRQTY';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Øvrige TF, beløb', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIOVRAMT';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Pasningsmodul takst', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIBELOBPA';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Pasningsmodul driftsudgift', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIBELOBDR';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Tilskud total, antal', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZITFTOTQT';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Tilskud total, beløb', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZITFTOTAM';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Driftsudgift total', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIDRTOTAL';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Pasningsindtægt total', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIPATOTAL';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Antal sene indmeldelser', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZISENINDM';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Antal indmeldte , periodens første dag', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIINSFST';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Antal ny indmeldelser på første dag i perioden', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIINMFST';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Antal udmeldelser på første dag i perioden', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIUDFST';
GO

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'Antal Udmeldelser på sidste dag i perioden', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'ZIUDLST';
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'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@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'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@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'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@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'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@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'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@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 den forretningsmæssige tidsangivelse for rækken. Denne bruges hvis data skal slettes med tidsangivelse', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'SYS_RettelserTidAngivelse';
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'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@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'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'SYS_Checksum';
GO

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

EXEC sys.sp_addextendedproperty 
@name = N'MS_Description', 
@value = N'SysDataDeliveryBatchIdCreate', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse', 
@level2type = N'COLUMN', @level2name = N'SYS_DataDeliveryBatchId_Create';
GO

EXEC sys.sp_addextendedproperty 
@name = N'DataArea', 
@value = N'dagtilbud', 
@level0type = N'SCHEMA', @level0name = N'D001-18-1', 
@level1type = N'TABLE',  @level1name = N'DSAHIST_ZD2I2_Indmeldelse';
GO

