INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAK4', GetDate())
INSERT INTO dbo.ATBAK4_01 VALUES
('02','K4',21,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',33,0,'A',70,1,0,'A',70,1,0,'A',70,1,0,'A',70,1,0,'A',70,1,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',130,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',223,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',234,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',235,0,'D',199,1,0,'A',199,1,0,'D',199,1,0,'A',199,1,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',236,0,'D',199,1,0,'A',280,1,0,'D',199,1,0,'A',280,1,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',237,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',238,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',290,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',291,0,'D',280,1,0,'D',280,1,0,'D',280,1,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',511,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',512,0,'',639,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',513,0,'',639,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',514,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',516,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',520,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',521,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',522,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',599,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',600,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',601,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',640,0,'A',300,1,1,'A',300,1,1,'A',300,1,1,'D',300,1,1,'A',210,2,1,'A',310,1,1,'',0,0,0,'',0,0,0 )
,('02','K4',641,0,'D',640,10,1,'D',640,10,2,'D',640,10,3,'A',300,3,2,'D',640,20,1,'D',640,20,2,'D',640,20,3,'A',300,3,5 )
,('02','K4',642,0,'A',300,1,1,'A',300,1,1,'A',300,1,1,'A',300,1,1,'D',300,1,1,'A',210,2,1,'A',310,1,1,'',0,0,0 )
,('02','K4',643,0,'D',650,10,1,'D',650,10,2,'D',650,10,3,'A',300,3,2,'D',650,10,1,'D',650,10,2,'D',650,10,3,'A',300,3,3 )
,('02','K4',644,0,'A',300,1,1,'A',300,1,1,'A',300,1,1,'A',300,1,1,'D',300,1,1,'A',210,2,1,'A',310,1,1,'',0,0,0 )
,('02','K4',645,0,'D',650,10,6,'D',650,10,7,'A',300,3,2,'D',650,10,4,'D',650,10,5,'D',650,10,6,'A',300,3,3,'D',720,1,1 )
,('02','K4',646,0,'',300,0,0,'',300,0,0,'',300,0,0,'',300,0,0,'',210,0,0,'',310,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',900,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',901,0,'D',650,1,5,'D',650,1,6,'A',310,1,2,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',902,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',903,0,'D',650,1,5,'D',650,1,6,'A',350,1,1,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',904,0,'D',350,1,10,'D',350,1,11,'A',350,1,12,'A',400,2,3,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',905,0,'A',230,5,1,'A',230,5,2,'A',230,3,1,'A',230,3,2,'A',230,7,2,'D',660,2,1,'',0,0,0,'',0,0,0 )
,('02','K4',906,0,'',0,5,1,'',0,5,2,'',0,3,1,'',0,3,2,'',0,7,2,'',0,2,1,'',0,0,0,'',0,0,0 )
,('02','K4',907,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',908,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',910,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K4',9811,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAK5', GetDate())
INSERT INTO dbo.ATBAK5_01 VALUES
('02','K5',641,0,'D',640,10,1,'D',640,10,2,'D',640,10,3,'A',300,3,5,'D',640,10,1,'D',640,10,2,'D',640,10,3,'A',300,3,5 )
,('02','K5',643,0,'D',720,1,1,'A',300,1,1,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K5',645,0,'A',300,1,1,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAK6', GetDate())
INSERT INTO dbo.ATBAK6_01 VALUES
('02','K6',641,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K6',643,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
,('02','K6',645,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0,'',0,0,0 )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAKK', GetDate())
INSERT INTO dbo.ATBAKK_01 VALUES
('02','KK',1,0,'FATTURA DI VENDITA IMMEDIATA','FATT.VEND.IMM.','S','001','1','C','','V',0,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,400,1,1,'','','FTVI','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','TD01','S' )
,('02','KK',2,0,'FATTURA DI VENDITA DIFFERITA','FATT.VEND.DIFF','S','001','1','C','','V',0,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','FTVI','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','TD24','S' )
,('02','KK',3,0,'FATTURA ACCOMPAGNATORIA','FATT.ACC.','S','001','1','C','','V',0,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','FTVA','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','TD01','S' )
,('02','KK',4,0,'FATTURA ACCOMPAGNATORIA P.V.','FATT.ACC. P.V.','S','001','1','C','','V',2,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','FTPV','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',5,0,'FATTURA CONFERIMENTO','FATT.CONF.','S','001','1','C','','V',1,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,400,1,30,'','','FTCO','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',6,0,'NOTA IMMEDIATA','NOTA IMM.','S','001','2','','C','V',0,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','NTVI','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','TD04','S' )
,('02','KK',7,0,'NOTA DIFFERITA','NOTA DIFF','S','001','2','','C','V',0,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','NTVI','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','TD04','S' )
,('02','KK',8,0,'FATTURA DI VENDITA INTRACEE','FATT.VEND.INTRA','S','001','1','C','','V',0,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','FTIN','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','TD01','S' )
,('02','KK',9,0,'NOTA DIFFERITA INTRA','NOTA DIFF INTRA','S','001','2','','C','V',0,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','NDIN','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','TD04','S' )
,('02','KK',11,0,'FATTURA ACCOMP.P.V. LIMENA','F.ACC.LIMENA','S','001','1','C','','V',11,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','FTPV','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',12,0,'FATTURA ACCOMP.P.V. SELVAZZANO','F.AC.SELVAZZANO','S','001','1','C','','V',12,'',0,'S','S','','','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','FTPV','N',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',20,0,'RICEVUTA BANCARIA','RIC. BANCARIA','S','021','5','','C','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','RICB','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',21,0,'INSOLUTO','INSOLUTO','S','023','6','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','INSO','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',22,0,'PAGAMENTO INSOLUTO','PAGAM. INSOLUTO','S','021','7','','C','',0,'',0,'','','','','','','','','N',0,0,100,0,0,70,1,0,0,0,0,'','N','PINS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',23,0,'RICEVUTA BANCARIA SU INSOLUTO','RICB SU INSOL.','S','021','8','','C','',0,'',0,'','','','','','','','','N',0,0,0,0,0,70,1,0,0,0,0,'','N','RICB','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',24,0,'PRESENTAZIONE EFFETTI S.B.F.','PRES.EFF.S.B.F.','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,75,1,2,75,1,1,0,0,0,'','N','PSBF','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',30,0,'PAGAMENTO CLIENTE  PV','PAG. CLIENTE PV','S','021','4','','C','',0,'',0,'','','','','','','','','N',0,0,0,0,0,70,1,0,0,0,0,'','N','PAGP','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',31,0,'PAGAMENTO CLIENTE CASSA','PAG CLI CASSA','S','040','4','','C','',0,'',0,'','','','','','','','','N',0,0,100,1,1,70,1,0,0,0,0,'','N','PAGC','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'S','','','','S' )
,('02','KK',32,0,'PAGAMENTO CLIENTE BANCA','PAG CLI BANCA','S','040','4','','C','',0,'',0,'','','','','','','','','N',0,0,100,2,0,70,1,0,0,0,0,'','N','PAGC','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',33,0,'PAGAMENTO CLIENTI MULTIPLO','PAG.CLIENTI MUL','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PCLM','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',50,0,'CORRISPETTIVO VO''','CORRISPETTIVO','S','005','','','','C',0,'',0,'','','','','','','','','',0,0,0,0,0,0,0,0,400,1,1,'','','CORR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',51,0,'CORRISPETTIVO LIMENA','CORRISPETTIVO','S','005','','','','C',1,'',0,'','','','','','','','','',0,0,0,0,0,0,0,0,400,1,1,'','','CORR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',52,0,'CORRISPETTIVO SELVAZZANO','CORRISPETTIVO','S','005','','','','C',2,'',0,'','','','','','','','','',0,0,0,0,0,0,0,0,400,1,1,'','','CORR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',53,0,'CORRISPETTIVO GALZIGNANO','CORRISPETTIVO','S','005','','','','C',3,'',0,'','','','','','','','','',0,0,0,0,0,0,0,0,400,1,1,'','','CORR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',100,0,'FATTURA DI ACQUISTO','FATT. ACQUISTO','S','002','1','','F','A',0,'',0,'N','N','1','S','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','FATF','',0,0,0,0,'','S','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',101,0,'NOTA ACCREDITO FORNITORE','N.ACCRED.FORNIT','S','002','2','F','','A',0,'',0,'S','S','1','S','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','NACF','',0,0,0,0,'','S','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',102,0,'FATTURA DI ACQUISTO INTRA','FATT. ACQ.INTRA','S','002','1','','F','A',0,'V',0,'N','N','1','S','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','FAAI','',0,0,0,0,'','S','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',103,0,'FATTURA ACQ. PROFESSIONISTI','FATTURA ACQ. PR','S','006','1','','F','A',0,'',0,'N','N','1','S','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','FATP','',0,0,0,0,'','S','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',104,0,'NOTA ACCREDITO FORNIT. INTRA','N.ACCRED.FORNIT','S','002','2','F','','A',0,'V',0,'N','N','1','S','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','NACF','',0,0,0,0,'','S','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',105,0,'ACQUISTI/SERVIZI EXTRACEE','ACQ.EXTRACEE','S','002','1','','F','A',0,'V',0,'N','N','1','S','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','EXTR','',0,0,0,0,'','S','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',106,0,'ACQUISTI/REVERSE CHARGE ITALIA','ACQ.REV.CHAR.IT','S','002','1','','F','A',0,'V',0,'N','N','1','S','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','RCIT','',0,0,0,0,'','S','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',107,0,'N.A. REVERSE CHARGE ITALIA','ACQ.REV.CHAR.IT','S','002','2','F','','A',0,'V',0,'N','N','1','S','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','RCIT','',0,0,0,0,'','S','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',130,0,'PAGAMENTO FORNITORE','PAG. FORNITORE','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PAGF','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',131,0,'PAGAMENTO FORNITORE','PAGAMENTO FORNI','S','041','4','F','','',0,'',0,'','','','','','','','','S',0,0,270,1,0,100,2,0,0,0,0,'','N','PAGF','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'S','','','','S' )
,('02','KK',132,0,'ABBUONO PASSIVO FORNITORE','ABB.PASSIVO FOR','S','021','4','','F','',0,'',0,'','','','','','','','','N',0,0,620,20,40,270,1,0,0,0,0,'','N','ABBP','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',133,0,'ABBUONO ATTIVO FORNITORE','ABB.ATTIVO FOR','S','021','4','F','','',0,'',0,'','','','','','','','','N',0,0,270,1,0,450,10,2,0,0,0,'','N','ABBA','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',198,0,'GIROPARTITA FORNITORE/CLIENTE','GIROP FOR/CLI','S','021','0','F','C','',0,'',0,'','','','','','','','','N',0,0,270,1,0,70,1,0,0,0,0,'','N','GIRP','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',199,0,'GIROPARTITA CLIENTE/FORNITORE','GIROP CLI/FOR','S','021','0','C','F','',0,'',0,'','','','','','','','','N',0,0,70,1,0,270,1,0,0,0,0,'','N','GIRP','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',200,0,'FATTURA ANTICIPO SOCIO','FATT.ANT.SOCIO','S','003','1','','S','A',20,'',0,'S','S','','','2','','','','',280,1,0,0,0,0,0,0,0,0,0,'','','FANS','',0,0,0,0,'1','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',201,0,'AUTOFATTURA ANTICIPO SOCIO','AUT. ANTICIPO S','S','003','1','','S','A',21,'',0,'S','S','','','2','','','','',280,1,0,0,0,0,0,0,0,0,0,'','','AANS','',0,0,0,0,'2','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',202,0,'PAG. ANTICIPO/ACCONTO A SOCIO','PAG.ANT/ACCONTO','S','021','4','S','','',0,'',0,'','','','','','','','','N',0,0,280,1,0,100,2,0,0,0,0,'','N','PANS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',203,0,'PAGAMENTO CONM COMPENSAZIONE','PAGAMENTO CONM','','022','4','F','C','',0,'',0,'','','','','','','','','S',0,0,0,0,0,0,0,0,0,0,0,'1','N','','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',210,0,'FATTURA ACCONTO SOCIO','FATT.ACC.SOCIO','S','003','1','','S','A',20,'',0,'S','S','','','2','','','','',280,1,0,0,0,0,0,0,0,0,0,'','','FTAC','',0,0,0,0,'1','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',211,0,'AUTOFATTURA ACCONTO SOCIO','AUT. ACC. SOCIO','S','003','1','','S','A',21,'',0,'S','S','','','2','','','','',280,1,0,0,0,0,0,0,0,0,0,'','','AUAC','',0,0,0,0,'2','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',212,0,'QUIETANZA ACCONTO UVE SOCI','QUIET.ACC.SOCI','S','021','4','S','','',0,'',0,'','','','','','','','','N',0,0,280,1,0,100,2,0,0,0,0,'','N','QUAC','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',213,0,'BONIFICO ACCONTO UVE SOCI','BONIF.ACC. SOCI','S','021','4','S','','',0,'',0,'','','','','','','','','N',0,0,280,1,0,100,2,0,0,0,0,'','N','BOAC','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',220,0,'STORNO FATTURA SOCIO','STORNO FT SOCIO','S','003','2','S','','A',20,'',0,'S','S','','','2','','','','',280,1,0,0,0,0,0,0,0,0,0,'','','SFTS','',0,0,0,0,'1','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',221,0,'STORNO AUTOFATTURA SOCIO','STORNO AUTSOCIO','S','003','2','S','','A',21,'',0,'S','S','','','2','','','','',280,1,0,0,0,0,0,0,0,0,0,'','','SAFS','',0,0,0,0,'2','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',222,0,'GIRO PAG/BONIF. A EREDE','GIRO PAG. EREDE','S','021','4','S','S','',0,'',0,'','','','','','','','','N',0,0,280,1,0,280,1,0,0,0,0,'','N','GERE','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',223,0,'STORNO PAGAMENTO SOCIO','STORNO PAG.SOCI','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','STSO','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',224,0,'FATTURA LIQUIDAZIONE UVE SOCIO','FATT.LIQ.UVE','S','003','1','','S','A',20,'',0,'S','S','','','2','','','','',280,1,0,0,0,0,0,0,0,0,0,'','','FLIQ','',0,0,0,0,'1','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',225,0,'PAG. FT LIQUIDAZIONE SOCIO','PAG.FT LIQ.SOCI','S','021','4','S','','',0,'',0,'','','','','','','','','N',0,0,280,1,0,100,2,0,0,0,0,'','N','PLIQ','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',226,0,'AUTOFATTURA SALDO SOCIO','AUTOF.SALDO SOC','S','003','1','','S','A',21,'',0,'S','S','','','2','','','','',280,1,0,0,0,0,0,0,0,0,0,'','','ASAC','',0,0,0,0,'2','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',230,0,'FATTURA ACQUISTO UVA','FATT.ACQ.UVA','S','003','1','','S','A',0,'',0,'S','N','','','2','','','','',280,2,0,0,0,0,0,0,0,0,0,'','','FACU','',0,0,0,0,'1','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',231,0,'AUTOFATTURA ACQUISTO UVA','AUT. ACQ. UVA','S','003','1','','S','A',1,'',0,'S','S','','','2','','','','',280,2,0,0,0,0,0,0,0,0,0,'','','AAQU','',0,0,0,0,'2','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',232,0,'PAGAMENTO FORNITORE UVA','PAG.FORNIT.UVA','S','021','4','S','','',0,'',0,'','','','','','','','','N',0,0,280,2,0,100,2,0,0,0,0,'','N','PFUV','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',233,0,'ACCREDITO ACQUISTO UVA','ACCR ACQUI UVA','S','003','2','S','','A',0,'',0,'S','N','','','2','','','','',280,2,0,0,0,0,0,0,0,0,0,'','','','',0,0,0,0,'1','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',234,0,'AMMISSIONE NUOVO SOCIO','AMMISS. SOCIO','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','AMMS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',235,0,'G/CAP.SOC.SUBENTRO SOCI','G/C.S. X SUBENT','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','SUBC','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',236,0,'RESTITUZIONE QUOTA SOCIALE','REST.QUOTA SOC.','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','REQS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',237,0,'PENALITA''RECESSO SOCI','PENAL.RECESSO','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PESO','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',238,0,'GIRO QUOTA SOC. DEBITI VS SOCI','G/Q.S. DEB.SOCI','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','GIQS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',240,0,'FATTURA SALDO UVE SOCIO','FT SALDO SOCIO','S','003','1','','S','A',20,'',0,'S','S','','','2','','','','',280,1,0,0,0,0,0,0,0,0,0,'','','FTSA','',0,0,0,0,'1','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',241,0,'AUTOFATT. SALDO UVE SOCIO','AUT.SALDO SOCIO','S','003','1','','S','A',21,'',0,'S','S','','','2','','','','',280,1,0,0,0,0,0,0,0,0,0,'','','AUSA','',0,0,0,0,'2','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',242,0,'QUIETANZA SALDO UVE SOCI','QUIET.SALDO SOC','S','021','4','S','','',0,'',0,'','','','','','','','','N',0,0,280,1,0,100,2,0,0,0,0,'','N','QUSA','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',243,0,'BONIFICO SALDO UVE SOCI','BON. SALDO SOCI','S','021','4','S','','',0,'',0,'','','','','','','','','N',0,0,280,1,0,100,2,0,0,0,0,'','N','BOSA','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',290,0,'SOVRAPPREZZO QUOTA SOCIO','SOVR.QUOTA SOC.','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','SQSO','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',291,0,'RIMBORSO PRESTITO VIGNETI','RIMB.PREST.VIGN','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','RPRV','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',300,0,'ERGA OMNES COLLI EUGANEI','ERGA OMNES C.E.','S','021','0','S','','',0,'',0,'','','','','','','','','N',0,0,280,1,0,80,1,21,0,0,0,'','N','ERCE','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',301,0,'ERGA OMNES PROSECCO DOP','ERGA OMNES PROS','S','021','0','S','','',0,'',0,'','','','','','','','','N',0,0,280,1,0,80,1,21,0,0,0,'','N','ERPR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',500,0,'VERSAMENTO BANCA','VERS.BANCA','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,100,2,0,100,1,1,0,0,0,'','N','VERS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',501,0,'VERSAMENTO BANCA LIMENA','VERS.BANCA LIM','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,100,2,1,100,1,2,0,0,0,'','N','VERS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',502,0,'VERSAMENTO BANCA SELVAZZANO','VERS.BANCA SELV','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,100,2,1,100,1,3,0,0,0,'','N','VERS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',503,0,'VERSAMENTO BANCA GALZIGNANO','VERS.BANCA GALZ','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,100,2,5,100,1,4,0,0,0,'','N','VERS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',510,0,'ARTICOLO PRIMA NOTA SEMPLICE','PRIMA NOTA SEMP','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PNSE','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',511,0,'ARTICOLO PRIMA NOTA COMPOSTO','PRIMA NOTA COMP','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PNCO','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',512,0,'PAG.MEZZO BANCA SEMPLICE','PAG. 1/2 BANCA','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PAGB','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',513,0,'PAGAMENTO MEZZO BANCA','PAG. 1/2 BANCA','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PAGB','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',514,0,'VERS/TO RAVVEDIM.OPEROSO','PRIMA NOTA COMP','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PNCO','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',515,0,'USCITA DI CASSA','USCITA DI CASSA','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,100,1,0,0,0,0,'','N','UCAS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',516,0,'PAGAMENTO PROMOTER','PAG.PROMOTER','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PPRO','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',520,0,'IMPOSTE E SPESE BANCA','IMPOSTE E SPESE','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','IMBO','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',521,0,'INTERESSI/SPESE/C.C.BANCA','INT.SPESE BANCA','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','INTE','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',522,0,'PAGAMENTO MUTI/FINANZ.','RATE MUTUI','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','RAMU','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',599,0,'STORNO OP.CHIUSURA ESERC.PREC.','STORNO OP.CHIUS','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','STOP','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',600,0,'GIROCONTO IVA VENDITE','G/ IVA VENDITE','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','GIVV','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',601,0,'GIROCONTO IVA ACQUISTI','G/ IVA ACQUISTI','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','GIVA','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',640,0,'STIPENDI IMPIEGATI','STIPENDI IMPIEG','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','STIP','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',641,0,'CONTR./DITTA STIPENDI IMPIEG.','CONTR.SU STIP.','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','CSTI','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',642,0,'SALARI CANT.IMBOTT.MAGAZZ.','SALARI GR.CANT.','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','SALC','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',643,0,'CONTR./DITTA CANT.IMBOTT.MAG.','CONTR.GR.GANT.','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','CONC','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',644,0,'SALARI SETTORE SPACCI','SALARI SPACCI','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','SALS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',645,0,'CONTR./DITTA SETT. SPACCI','CONTR.SPACCI','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','CONS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',646,0,'COMPENSI CDA','COMPENSI CDA','S','023','4','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','CCDA','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',900,0,'FATTURE DA RICEVERE FINE ESERC','FT. DA RICEVERE','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PNCO','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',901,0,'RESIDUO FERIE DIP. FINE ESERC.','RESIDUO FERIE','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','REFE','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',902,0,'CONGUAGLIO T.F.R. FINE ESERC.','CONGUAG. T.F.R.','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','CTFR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',903,0,'RATEO 13/A - 14/A  FINE ESERC.','RATEO 13/A 14/A','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','RA13','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',904,0,'RISCONTI CONTRIBUTI REGIONALI','RISCONTI CONTR.','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','RISC','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',905,0,'QUOTA AMM/TO BENI VO''','AMM/TO VO''','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','AMVO','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
go
INSERT INTO dbo.ATBAKK_01 VALUES
('02','KK',906,0,'QUOTA AMM/TO BENI LIMENA','AMM/TO LIMENA','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','AMLI','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',907,0,'SCRITTURE FINE ESERCIZIO','SCRITT.FINE ES.','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','FIES','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',908,0,'STORNO OP.CHIUS. ESERC. PREC.','STORNO OP.CHIUS','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','APES','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',910,0,'CONTABILIZZAZIONE IMPOSTE','CONTAB.IMPOSTE','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','COIM','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',1001,0,'MOVIMENTO GENERICO','MOVIMENTO GENER','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',8888,0,'CORRISPETTIVO SOCI','CORRISP. SOCI','S','004','','','','C',0,'',0,'','','','','','','','','',0,0,0,0,0,0,0,0,0,0,0,'','','CORS','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',9800,0,'SALDO CHIUSURA C/ECONOMICI','CHIUSURA C/ECON','','022','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'1','N','CHCE','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',9801,0,'RILEVAZIONE UTILE ESERCIZIO','UTILE ESERCIZIO','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','UES','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',9802,0,'RILEVAZIONE PERDITA ESERCIZIO','PERDITA ES.','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','PES','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',9805,0,'SALDO CHIUSURA C/PATRIMONIALI','CHIUSURA C/PATR','','022','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'1','N','CHPA','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',9806,0,'APERTURA C/ PATRIMONIALI','APERTURA C/PATR','','022','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'1','N','APPA','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',9810,0,'RIPRESA UTILE ESERC.PRECEDENTE','RIPR.UTILE ES.P','S','021','0','','','',0,'',0,'','','','','','','','','N',0,0,9980,1,1,200,9,1,0,0,0,'','N','RUEP','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',9811,0,'RIPARTIZ.UTILE ESERCIO PREC.','RIPARTIZ.UTILE','S','023','0','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,0,0,0,0,0,0,'','N','RUTP','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',9991,0,'RIPRESA CAPITALE SOCIALE','RIPR CAP. SOC.','S','021','3','','S','',0,'',0,'','','','','','','','','N',0,0,9980,1,1,199,1,0,0,0,0,'','N','RIPR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',9992,0,'RIPRESA SOCI C/UVE DARE','RIP SOCI C/UVED','S','021','3','S','','',0,'',0,'','','','','','','','','N',0,0,280,1,0,9980,1,1,0,0,0,'','N','RIPR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',9993,0,'RIPRESA SOCI C/UVE AVERE','RIP SOCI C/UVEA','S','021','3','','S','',0,'',0,'','','','','','','','','N',0,0,9980,1,1,280,1,0,0,0,0,'','N','RIPR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',9994,0,'RIPRESA SALDO FORNITORE NEGAT.','RIPR FOR NEGAT.','S','996','3','F','','',0,'',0,'','','','','','','','','',0,0,0,0,0,0,0,0,9980,1,1,'','','RIPR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',9995,0,'RIPRESA SALDO FORNITORE','RIPRESA FORNIT.','S','996','3','','F','',0,'',0,'','','','','','','','','',0,0,0,0,0,0,0,0,9980,1,1,'','','RIPR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'N','','','','S' )
,('02','KK',9996,0,'RIPRESA SALDO CLIENTE NEGATIVO','RIPR CLI NEGAT.','S','995','3','','C','',0,'',0,'','','','','','','','','',0,0,0,0,0,0,0,0,9980,1,1,'','','RIPR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',9997,0,'RIPRESA SALDO CLIENTE','RIPRESA CLIENTE','S','995','3','C','','',0,'',0,'','','','','','','','','',0,0,0,0,0,0,0,0,9980,1,1,'','','RIPR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',9998,0,'RIPRESA SALDO CONTI AVERE','RIPRESA C/AVERE','S','993','3','','','',0,'',0,'','','','','','','','','N',0,0,9980,1,1,0,0,0,0,0,0,'','N','RIPR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
,('02','KK',9999,0,'RIPRESA SALDO CONTI DARE','RIPRESA C/DARE','S','993','3','','','',0,'',0,'','','','','','','','','N',0,0,0,0,0,9980,1,1,0,0,0,'','N','RIPR','',0,0,0,0,'','','','',0,0,0,'','',0,0,0,'',0,'','','','','S' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBALI', GetDate())
INSERT INTO dbo.ATBALI_01 VALUES
('02','LI',1,0,'LISTINO UNICO','LISTINO UNICO',0,'N' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBALP', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAMA', GetDate())
INSERT INTO dbo.ATBAMA_01 VALUES
('02','MA',1,0,'MAGAZZINO DI VO''','MAGAZZINO DI VO','VIA G.MARCONI 314','35030','VO''','PD',1,0,0,0,1,0,'N','I','I',0,0,0,0,'',0,'',0,'L',1,28105,'2016-12-27',11045683,0,'','S','S','1','N','' )
,('02','MA',2,0,'MAGAZZINO DI BISINELLA','BISINELLA','VIA DELL''ARTIGIANATO, 14','35010','CAMPO SAN MARTINO','PD',0,0,0,0,0,0,'N','I','I',0,0,0,0,'',0,'',0,'L',0,0,NULL,0,0,'','S','S','','','N' )
,('02','MA',3,0,'TIPOGRAFIA MANDRUZZATO','TIPOGRAFIA MAND','VIA LUIGI EINAUDI, 41','35030','VO''','PD',0,0,0,0,0,0,'N','I','I',0,0,0,0,'',0,'',0,'L',0,0,'2017-01-25',9135199,0,'','S','S','','','N' )
,('02','MA',4,0,'MAGAZZINO DI CASSOL','CASSOL','VIA NUOVA ZELANDA 8','35127','PADOVA','PD',0,0,0,0,0,0,'N','I','I',0,0,0,0,'',0,'',0,'L',0,28060,'2019-07-02',8501604,0,'','S','S','','','N' )
,('02','MA',5,0,'AM LOGISTICA S.R.L.','AM LOGISTICA S.','VIA SANMARTINARA, 77','35013','CITTADELLA','PD',0,0,0,0,0,0,'N','N','N',0,0,0,0,'',0,'',0,'L',0,28032,'2020-03-06',13530001,0,'','S','S','','','N' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAMP', GetDate())
INSERT INTO dbo.ATBAMP_01 VALUES
('02','MP','101',0,'RIM.DIRETTA VISTA FATTURA','RIM.DIRETTA VIS','0','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','S',0,'1','','',0,0,'','','','','','','','','MP01' )
,('02','MP','102',0,'RIM.DIRETTA 60 GG','RIM.DIR. 60 GG','0','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','S',0,'1','','',0,0,'','','','','','','','','MP01' )
,('02','MP','201',0,'BONIFICO VISTA FATTURA','BON.VISTA FATT','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','202',0,'BONIFICO 60GG DATA FATT. F.M.','BON.60GG DF FM','2','','2','3','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','203',0,'BONIFICO 60GG DATA CONSEGNA','BON.60GG DCONSE','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','204',0,'BONIFICO 60GG DATA RICEZ FATT','BON.60GG COFATT','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','205',0,'BONIFICO 00/30/60 DATA CONSEGN','BON.00/30/60CON','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','206',0,'BONIFICO 90 GG DATA FATTURA','BON.90 GG D.FAT','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','207',0,'BONIFICO 30GG DATA CONSEGNA','BON.30GG DCONSE','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','208',0,'BONIFICO 30 GG VISTA FATTURA','BON.30GG VISTA','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','' )
,('02','MP','209',0,'BONIFICO 90 GG RIC MERCE','BON.90 GG R.M.','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','210',0,'BONIFICO 30GG DATA FATT. F.M.','BON.30GG DF FM','2','','2','3','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','211',0,'BONIFICO 90GG DATA FATT. F.M.','BON.90GG DF FM','2','','2','3','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','212',0,'BONIFICO 00/60/90 DF FM','BON.00/60/90 FM','2','','2','2','2',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','213',0,'BONIFICO 45GG DATA FATT. F.M.','BON.45GG DF FM','2','','2','3','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','214',0,'BONIFICO 75GG DATA CONSEGNA','BON.75GG DCONSE','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','215',0,'BONIFICO 60 GG DATA FATTURA','BON.60 GG D.FAT','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','216',0,'BONIFICO 40 GG DATA FATTURA','BON.40 GG D.FAT','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','217',0,'BONIFICO 120 GG DATA FATTURA','BON.120 GG D FA','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','218',0,'BONIFICO 150 GG F.M.','BON.150 GG F.M.','2','','2','3','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','219',0,'BONIFICO 150 GG DATA FATTURA','BON.150 GG D FA','2','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','300',0,'RICEVUTA BANCARIA','RI.BA.','1','','2','2','2',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','301',0,'RICEVUTA BANCARIA 60/90 GG FM','RICEVUTA BANCAR','1','','2','3','2',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','302',0,'RICEVUTA BANCARIA 90 GG FM','RI BA 90 GGFM','1','','2','3','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','303',0,'RICEVUTA BANCARIA 60 GG FM','RIBA 60 GGFM','1','','2','3','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','304',0,'RICEVUTA BANCARIA 30 GG FM','RIBA 30 GGFM','1','','2','3','2',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','305',0,'RICEVUTA BANCARIA 45 GG FM','RIBA 45 GGFM','1','','2','3','2',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','306',0,'RICEVUTA BANCARIA 45 GG','RI.BA. 45 GG','1','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','307',0,'RIC. BANC. 120 GG DF','RB 120 GDF','1','','1','3','3',0,'',0,0,0,0,0,0,'',1.5,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','308',0,'RICEVUTA BANCARIA 30 GG DATA R','RIBA 30 GG D RI','1','','2','1','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','309',0,'RICEVUTA BANCARIA 90 GG DF','RI BA 90 GG DF','1','','2','2','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','310',0,'RICEVUTA BANCARIA 120 GG FM','RIBA 120 GG FM','1','','2','3','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','311',0,'RIC.BANCARIA 90 GG DF SC.3,10%','RIBA 90 GFM 3,1','1','','2','2','1',0,'',0,0,0,0,0,0,'',3.1,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','312',0,'RIC. BANC. 60 GG DF','RIBA 60 GG DF','1','','1','3','3',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','313',0,'RICEVUTA BANCARIA 75 GG FM','RI BA 75 GGFM','1','','2','3','1',0,'',0,0,0,0,0,0,'',0,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
,('02','MP','401',0,'PAGAMENTO ANTICIPATO','PAGA.ANTICIPATO','0','','1','2','1',0,'',0,0,0,0,0,0,'',3,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','402',0,'PAGAMENTO ANTICIPATO EXTRA','PAGA.ANT.EXTRA','0','','1','2','1',0,'',0,0,0,0,0,0,'',5,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP05' )
,('02','MP','503',0,'RIC. BANC. 90 GG DF FM SC. 1%','RIBA 90GG FM 1%','1','','1','3','3',0,'',0,0,0,0,0,0,'',1,0,'N','N',0,'1','','',0,0,'','','','','','','','','MP12' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAPC', GetDate())
INSERT INTO dbo.ATBAPC_01 VALUES
('02','PC',1,0,'MERCOLEDI'' POMERIGGIO','MERC.POMERIGGIO' )
,('02','PC',2,0,'MARTEDI''','MARTEDI''' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAPI', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAPO', GetDate())
INSERT INTO dbo.ATBAPO_01 VALUES
('02','PO',1,0,'FRANCO NS. CANTINA','FRANCO NS. CANT','',0,'1','E','2' )
,('02','PO',2,0,'FRANCO VS. DEPOSITO O MAGAZZ.','FRANCO VS. DEPO','',0,'2','E','1' )
,('02','PO',4,0,'PORTO ASSEGNATO','PORTO ASSEGNATO','',0,'2','E','1' )
,('02','PO',5,0,'F.O.B.','F.O.B.','',0,'2','F','1' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAPP', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAPV', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBASC', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBASM', GetDate())
INSERT INTO dbo.ATBASM_01 VALUES
('02','SM',1,0,'GIACENZA INIZIALE','GIACENZA INIZ.','GIAC.INIZ.','1','S' )
,('02','SM',5,0,'ACQUISTI','ACQUISTI','  ACQUISTI','2','S' )
,('02','SM',6,0,'CARICO DA VENDEMMIA','CARICO VENDEMMI','CAR. VEND.','2','N' )
,('02','SM',10,0,'CARICO DA PRODUZIONE','CARICO PRODUZ.','CAR.PRODUZ','2','N' )
,('02','SM',97,0,'RIPRESA SALDO VALORE','RIPRESA SALDO V','RIPRESA V.','2','S' )
,('02','SM',98,0,'ALTRI CARICHI','ALTRI CARICHI','Altri car.','2','N' )
,('02','SM',99,0,'RIPRESA SALDO','RIPRESA SALDO','RIPR.SALDO','2','N' )
,('02','SM',100,0,'VENDITE','VENDITE','   VENDITE','3','N' )
,('02','SM',105,0,'VENDITE SPACCIO','VENDITE SPACCIO','VENDITE PV','3','N' )
,('02','SM',110,0,'SCARICO A PRODUZIONE','SCARICO PRODUZ.','Scar.Prod.','3','N' )
,('02','SM',115,0,'PERDITE E SFRIDI','PERDITE/SFRIDI','PERD. SFR.','3','N' )
,('02','SM',198,0,'ALTRI SCARICHI','ALTRI SCARICHI','Altri Scar','3','N' )
,('02','SM',200,0,'ORDINATO DA CLIENTI BREVE','ORD.CLI.BREVE','Ord.Cli.B.','7','N' )
,('02','SM',205,0,'ORDINATO CLIENTI LUNGO','ORD.CLI.LUNGO','Ord.Cli.L.','5','N' )
,('02','SM',210,0,'ORDINATO FORNITORI BREVE','ORD.FOR.BREVE','Ord.For.B.','6','N' )
,('02','SM',215,0,'ORDINATO FORNITORI LUNGO','ORD.FOR.LUNGO','Ord.For.L.','4','N' )
,('02','SM',220,0,'ORDINATO A PRODUZIONE','ORDINATO A PROD','ORDINATO P','6','N' )
,('02','SM',225,0,'IMPEGNATO A PRODUZIONE','IMPEGNATO A PRO','IMPEGNATOP','7','N' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAT1', GetDate())
INSERT INTO dbo.ATBAT1_01 VALUES
('02','T1',1,0,'','','','','',0,'' )
,('02','T1',2,0,'049/9638100','','','','',0,'' )
,('02','T1',3,0,'','','','','',0,'' )
,('02','T1',4,0,'','','','','',0,'' )
,('02','T1',5,0,'','','','','',0,'' )
,('02','T1',6,0,'0499801846','','','','',0,'' )
,('02','T1',7,0,'','','','','',0,'' )
,('02','T1',8,0,'049 9403333','049 9409322','','','',0,'' )
,('02','T1',9,0,'0498067011','','','','',0,'' )
,('02','T1',10,0,'0421204299','','','','',0,'' )
,('02','T1',11,0,'','','PB1901EB','','',0,'' )
,('02','T1',12,0,'','','DD054DD','','',0,'' )
,('02','T1',13,0,'','','','','',0,'' )
,('02','T1',14,0,'','','','','',0,'' )
,('02','T1',15,0,'','','','','',0,'' )
,('02','T1',16,0,'','','','','',0,'' )
,('02','T1',17,0,'','','','','',0,'' )
,('02','T1',18,0,'049 8702266','','','','',0,'' )
,('02','T1',19,0,'','','','','',0,'' )
,('02','T1',20,0,'','','','','',0,'' )
,('02','T1',21,0,'0432/621811','','','','',0,'' )
,('02','T1',22,0,'','','','','',0,'' )
,('02','T1',23,0,'','','','','',0,'' )
,('02','T1',24,0,'0472 848802','','','','',0,'' )
,('02','T1',25,0,'+49 911 56790330','','','','',0,'' )
,('02','T1',26,0,'','','','','',0,'' )
,('02','T1',27,0,'','','','','',0,'' )
,('02','T1',28,0,'','','','','',0,'' )
,('02','T1',29,0,'','','','','',0,'' )
,('02','T1',30,0,'','','','','',0,'' )
,('02','T1',31,0,'','','','','',0,'' )
,('02','T1',32,0,'','','','','',0,'' )
,('02','T1',33,0,'','','','','',0,'' )
,('02','T1',34,0,'','','','','',0,'' )
,('02','T1',35,0,'','','','','2',0,'' )
,('02','T1',36,0,'','','','','',0,'' )
,('02','T1',37,0,'','','','','',0,'' )
,('02','T1',38,0,'','','','','',0,'' )
,('02','T1',39,0,'+39 0141 856010','','','','',0,'' )
,('02','T1',40,0,'','','','','',0,'' )
,('02','T1',41,0,'0497699410','','','','',0,'' )
,('02','T1',42,0,'','','','','',0,'' )
,('02','T1',43,0,'','','','','',0,'' )
,('02','T1',44,0,'','','','','',0,'' )
,('02','T1',45,0,'','','','','',0,'' )
,('02','T1',46,0,'','','','','',0,'' )
,('02','T1',47,0,'','','','','',0,'' )
,('02','T1',48,0,'','','','','',0,'' )
,('02','T1',49,0,'','','','','',0,'' )
,('02','T1',50,0,'','','','','',0,'' )
,('02','T1',51,0,'','','','','',0,'' )
,('02','T1',52,0,'','','','','',0,'' )
,('02','T1',53,0,'','','','','',0,'' )
,('02','T1',54,0,'','','','','',0,'' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAT2', GetDate())
INSERT INTO dbo.ATBAT2_01 VALUES
('02','T2',1,0,'','','' )
,('02','T2',2,0,'','','' )
,('02','T2',3,0,'','','' )
,('02','T2',4,0,'','','' )
,('02','T2',5,0,'','','' )
,('02','T2',6,0,'','','' )
,('02','T2',7,0,'','','' )
,('02','T2',8,0,'','info@bergatrans.it','' )
,('02','T2',9,0,'','','' )
,('02','T2',10,0,'','','' )
,('02','T2',11,0,'','','' )
,('02','T2',12,0,'','','' )
,('02','T2',13,0,'','','' )
,('02','T2',14,0,'','','' )
,('02','T2',15,0,'','','' )
,('02','T2',16,0,'','','' )
,('02','T2',17,0,'','','' )
,('02','T2',18,0,'','','' )
,('02','T2',19,0,'','','' )
,('02','T2',20,0,'3356894738','','' )
,('02','T2',21,0,'','','' )
,('02','T2',22,0,'','','' )
,('02','T2',23,0,'','','' )
,('02','T2',24,0,'','rudi.h@transbozen.it','' )
,('02','T2',25,0,'','','' )
,('02','T2',26,0,'','','' )
,('02','T2',27,0,'','','' )
,('02','T2',28,0,'','','' )
,('02','T2',29,0,'','','' )
,('02','T2',30,0,'','','' )
,('02','T2',31,0,'','','' )
,('02','T2',32,0,'','','' )
,('02','T2',33,0,'','','' )
,('02','T2',34,0,'','','' )
,('02','T2',35,0,'','','' )
,('02','T2',36,0,'','','' )
,('02','T2',37,0,'','','' )
,('02','T2',38,0,'','','' )
,('02','T2',39,0,'','info@spertinotrasporti.it','' )
,('02','T2',40,0,'','','' )
,('02','T2',41,0,'','','' )
,('02','T2',42,0,'','','' )
,('02','T2',43,0,'','','' )
,('02','T2',44,0,'','','' )
,('02','T2',45,0,'','','' )
,('02','T2',46,0,'','','' )
,('02','T2',47,0,'','','' )
,('02','T2',48,0,'','','' )
,('02','T2',49,0,'','','' )
,('02','T2',50,0,'','','' )
,('02','T2',51,0,'','','' )
,('02','T2',52,0,'','','' )
,('02','T2',53,0,'','','' )
,('02','T2',54,0,'','','' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBATR', GetDate())
INSERT INTO dbo.ATBATR_01 VALUES
('02','TR',1,0,'BARTOLINI SPA PADOVA','VIA INGHILTERRA, 11','35127','PADOVA','PD','','','','','BARTOLINI','','','','','','',0,'','',0,'','',0 )
,('02','TR',2,0,'BISINELLA S.R.L.','VIA DELL''ARTIGIANATO, 20','35010','CAMPO SAN MARTINO','PD','02006290288','','','','BISINELLA S.R.L','PD 2455308/Y','','','','','',0,'','',0,'','',0 )
,('02','TR',3,0,'AUTOTRASPORTI FURLAN MAURIZIO','VIA FATTORELLE, 34','35030','CINTO EUGANEO','PD','01490310289','','','','FURLAN','PD2452995VV','','','','','',0,'','',0,'','',0 )
,('02','TR',4,0,'PMG TRASPORTI&LOGISTICA','VIA LUIGI PASTRO, 181','31040','VOLPAGO DEL MONTELLO','TV','04133920266','','','','PMG','TV/2658590/U','','','','','',0,'','',0,'','',0 )
,('02','TR',5,0,'RI.TRANS SRL','PIAZZA DEL MERCATO 5','30175','MARGHERA','VE','03093680274','','','','RI.TRANS SRL','VE/2255841/K','','','','','',0,'','',0,'','',0 )
,('02','TR',6,0,'B.A. TRASPORTI SRL','VIA DEL LAVORO, 85','30030','VIGONOVO','VE','','','','','B.A. TRASPORTI','','','','','','',0,'','',0,'','',0 )
,('02','TR',7,0,'TRASPORTI BOSCAINI SRL','VIA T.EDISON, 5','37136','VERONA','VR','02749710238','','','','TRASPORTI BOSCA','TVR2809270C','','','','','',0,'','',0,'','',0 )
,('02','TR',8,0,'BERGATRANS','VIA BELTRAMINA SUD, 6/2 INT.1','35013','CITTADELLA','PD','03297260287','','','','BERGATRANS','','','','','','',0,'','',0,'','',0 )
,('02','TR',9,0,'ANGELO FINESSO SPA','VIA VIGONOVESE, 62','35127','PADOVA','PD','00227660289','','','','ANGELO FINESSO','PD/2453203/M','','','','','',0,'','',0,'','',0 )
,('02','TR',10,0,'DM TRASPORTI SRL','VIA DEI SALICI, 4','30020','GRUARO','VE','03403980273','','','','DM TRASPORTI SR','','','','','','',0,'','',0,'','',0 )
,('02','TR',11,0,'LANNUTTI SPA','VIA VALLE PO, 149','12100','CUNEO','CN','00313820045','','','','LANNUTTI SPA','','','','','','',0,'','',0,'','',0 )
,('02','TR',12,0,'ROLANDO MATTEO AUTOTRASPORTI','VIA ANGELO OTTONE, 33','13011','BORGOSESIA','VC','02274020029','','','','ROLANDO MATTEO','','','','','','',0,'','',0,'','',0 )
,('02','TR',13,0,'AUTOTRASPORTI MANUELE BONOMI','VIA FURCHIR, 5','33010','RIVOLI DI OSOPPO','UD','02133480307','','','','AUTOTRASPORTI M','','','','','','',0,'','',0,'','',0 )
,('02','TR',14,0,'SCHOENI TRANSPORT AG','SVIZZERA - SCHWEIZ - Rothrist','4852','NEUE INDUSTRIESTRASSE 1','','CHE 103549004','','','','SCHOENI TRANSPO','5545/2014','','','','','',0,'','',0,'','',0 )
,('02','TR',15,0,'LOGISTICA 2 SRL','STRADA DELL''INTERPORTO,','38100','TRENTO','TN','01672650221','','','','LOGISTICA 2 SRL','RM 203477/97','','','','','',0,'','',0,'','',0 )
,('02','TR',16,0,'SUSA SPA','VIA JURI GAGARIN 39','06073','ELLERA','PG','','','','','SUSA SPA','PG/5601903/A/00','','','','','',0,'','',0,'','',0 )
,('02','TR',17,0,'Petrans d.o.o','Jur.kova Cesta, 234','1000','Ljubljana Slovenia','','','','','','Petrans d.o.o','','','','','','',0,'','',0,'','',0 )
,('02','TR',18,0,'AUTOTRTASPORTI TARDINI','VIA NUOVA ZELANDA, 8','35127','CAMIN','PD','00260760434','','','','TARDINI','','','','','','',0,'','',0,'','',0 )
,('02','TR',19,0,'SERTRA SRL','VIA DELL''INDUSTRIA, 22','37066','SOMMACAMPAGNA','VR','02431200233','','','','SERTRA SRL','VR2805665/Q','','','','','',0,'','',0,'','',0 )
,('02','TR',20,0,'TRASPORTI FRAMA S.N.C.','VIA ROVERI, 30','','ZERMEGHEDO','VI','03855780247','','','','TRASPORTI FRAMA','VI/2959366/W','','','','','',0,'','',0,'','',0 )
,('02','TR',21,0,'LOGICA SPEDIZIONI SRL','VIA ODERZO 16','33100','ODERZO','','01605580933','','','','LOGICA SPEDIZIO','UD 279999','','','','','',0,'','',0,'','',0 )
,('02','TR',22,0,'GARTNER KG','LINZER STRASSE 40','4650','LAMBACH','','','','','','GARTNER KG','','','','','','',0,'','',0,'','',0 )
,('02','TR',23,0,'LTL SERVICE SRL','VIA MONTE CETONA 4','05018','ORVIETO','TR','01479310557','','','','LTL SERVICE SRL','','','','','','',0,'','',0,'','',0 )
,('02','TR',24,0,'TRANSBOZEN LOGISTIK','ALBIONES 38','39040','LAION','BZ','IT02415590211','','','','TRANSBOZEN LOGI','BZ2153471H','','','','','',0,'','',0,'','',0 )
,('02','TR',25,0,'FRIGOSPED GmbH','Oedenbergerstrade 55-59','D90491','Nurnberg','','DE118551','','','','FRIGOSPED GmbH','','','','','','',0,'','',0,'','',0 )
,('02','TR',26,0,'JF HILLEBRAND GROUP','VIA VOLTURNO 10/12','50019','SESTO FIORENTINO','FI','IT03637720487','','','','JF HILLEBRAND G','ITAEOF171274','','','','','',0,'','',0,'','',0 )
,('02','TR',27,0,'QUALITY FREIGHY GROUP','MUR BUILDING ROAD','','BELFAST BT 24LT NORTHERN IRELA','','','','','','QUALITY FREIGHY','','','','','','',0,'','',0,'','',0 )
,('02','TR',28,0,'INTERSPED LOGISTICS UK','66 HAILEY ROAD','','ERITH, KENT DA 18 4 AA','','GB358598002','','','','INTERSPED LOGIS','1677239','','','','','',0,'','',0,'','',0 )
,('02','TR',29,0,'CESPED SPA','VIALE GRADO 134','33050','LAUZACCO','UD','01118200300','','','','CESPED SPA','UD/3253029/L/OO','','','','','',0,'','',0,'','',0 )
,('02','TR',30,0,'COLLICARE LOGISTIC ITALIA','VIA GUIDELLI 11/B','41126','MODENA','','03731410365','','','','COLLICARE LOGIS','','','','','','',0,'','',0,'','',0 )
,('02','TR',31,0,'CORNEEL GEERT TRANSPORTGROUP','B-2110 WIJNEGEM','','BELGIE','','BE412399557','','','','CORNEEL GEERT T','','','','','','',0,'','',0,'','',0 )
,('02','TR',32,0,'CECCARELLI GROUP','VIA INGHILTERRA 16 BOX C4','35127','PADOVA','PD','02169920309','','','','CECCARELLI GROU','','','','','','',0,'','',0,'','',0 )
,('02','TR',33,0,'CARGO FORWARDING LTD.','TRANSIT 1, WESTBANK WAY','','BELFAST BT3 9LB','','GB517297724','','','','CARGO FORWARDIN','GBWK 517297724','','','','','',0,'','',0,'','',0 )
,('02','TR',34,0,'SPIZ TRASPORTI SRL','PIAZZALE G. CESARE 14','20145','MILANO','','13123720156','','','','SPIZ TRASPORTI','MI/0886052/X','','','','','',0,'','',0,'','',0 )
,('02','TR',35,0,'CASSOL S.R.L.','Via Nazionale 6/A','35032','Santa Giustina','BL','00260600259','','','','CASSOL S.R.L.','BL/2400607/Z','','','','','',0,'','',0,'','',0 )
,('02','TR',36,0,'GIORGIO GORI SRL','VIA MAZZANTA, 1 -LOCALITA'' MAZ','37050','OPPEANO','VR','00803490499','','','','GIORGIO GORI SR','','','','','','',0,'','',0,'','',0 )
,('02','TR',37,0,'LUCA NELLO S.R.L.AUTOTRASPORTI','VIA PIAVE, 31','31010','CIMADOLMO','TV','0351703026','','','','LUCA NELLO S.R.','TV2657102N','','','','','',0,'','',0,'','',0 )
,('02','TR',38,0,'CONSORZIO TRASPORTI VETRO G.','VIA 1 MAGGIO, 34','46039','VILLIMPENTA','MN','01582380232','','','','CONSORZIO TRASP','MN1654020/B','','','','','',0,'','',0,'','',0 )
,('02','TR',39,0,'SPERTINO TRASPORTI SRL','REG.SALINE, 38','14050','SAN MARZANO OLIVETO','AT','01281910057','','','','SPERTINO TRASPO','AT/0452533','','','','','',0,'','',0,'','',0 )
,('02','TR',40,0,'AM LOGISTICA','VIA SANMARTINARA 77','35013','CITTADELLA','PD','','','','','AM LOGISTICA','','','','','','',0,'','',0,'','',0 )
,('02','TR',41,0,'NEOSPED EUROPA','VIA BELLANO 5','35123','PADOVA','PD','','','','','NEOSPED EUROPA','','','','','','',0,'','',0,'','',0 )
,('02','TR',42,0,'ROBERT KUKLA SPEDITION UK LTD','UNIT 1 SAXON HOUSE OFFICE PARK','','WARLEY STREET UPOMINSTER','','','','','','ROBERT KUKLA SP','','','','','','',0,'','',0,'','',0 )
,('02','TR',43,0,'MAIL BOXES ETC','VIA DELLE GRAZIE 7','33170','PORDENONE','PN','','','','','MAIL BOXES ETC','','','','','','',0,'','',0,'','',0 )
,('02','TR',44,0,'DAS TRANSPORT s.r.o','Jatecni,78 760 01','Zlin','Repubblica Ceca','','','','','','DAS TRANSPORT','','','','','','',0,'','',0,'','',0 )
,('02','TR',45,0,'UAB GERATA','Dariaus Ir Gireno G. 99','02189','Vilniaus','','LT236239716','','','','UAB GERATA','','','','','','',0,'','',0,'','',0 )
,('02','TR',46,0,'TNT FedEx','Via Inghilterra, 16','35127','Padova','','','','','','TNT','','','','','','',0,'','',0,'','',0 )
,('02','TR',47,0,'MOVEST SPA','VIA NOVAI 7','33052','CERVIGNANO DEL FRIULI','UD','02215330305','','','','MOVEST SPA','','','','','','',0,'','',0,'G','',30023 )
,('02','TR',48,0,'CONTRAVER COOP.A.R.L.','VIA DELLA METALLURGIA, 14','37139','VERONA','VR','','','','','CONTRAVER COOP.','','','','','','',0,'','',0,'G','',23091 )
,('02','TR',49,0,'POSTUMIA TRASPORTI SRL','VIA CALLALTA, 114','31057','SILEA','TV','','','','','POSTUMIA TRASPO','','','','','','',0,'','',0,'G','',26081 )
,('02','TR',50,0,'Spedition Mickeleit GmbH & Co','Alte Landstr.10','D45329','Essen','','','','','','Spedition Micke','','','','','DE00000088781','',0,'','',0,'G','',0 )
,('02','TR',51,0,'TRASP.CONS. BASSO VER.TRASCO','VIA MASO, 20','37054','NOGARA','VR','','','','','TRASP.CONS. BAS','','','','','','',0,'','',100,'G','',23053 )
,('02','TR',52,0,'UAB EFTAL','LAISVES PR.60','05120','VILNIUS-LATVIA','LT','LT100009343812','','','','UAB EFTAL','','','','','','',0,'','',0,'G','',0 )
,('02','TR',53,0,'SIA HURRICANE','Alejas-Mezares,Babites nov.','LV2101','LATVIA','','','','','','SIA HURRICANE','','','','','','',0,'','',0,'G','',0 )
,('02','TR',54,0,'CHRONO EXPRESS','VIA NICCOLO PAGANINI, 10','10036','SETTIMO TORINESE','TO','','','','','CHRONO EXPRESS','','','','','','',0,'','',0,'G','',1265 )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAUM', GetDate())
INSERT INTO dbo.ATBAUM_01 VALUES
('02','UM',1,0,'LITRI','LT',0,0,0,'O','LT','','L',0,1,0,0,0,'',0,0,'',0,0,'',0,'S','N',0,0,0,'',0,'' )
,('02','UM',2,0,'CHILOGRAMMI','KG',0,0,0,'N','KG','','K',0,0,0,1,0,'',0,0,'',0,0,'',0,'N','N',0,0,0,'',0,'' )
,('02','UM',3,0,'NUMERO GENERICO','NR',0,0,0,'N','NR','','X',1,0,0,0,0,'',0,0,'',0,0,'',0,'N','S',0,0,0,'',0,'' )
,('02','UM',101,0,'BOTTIGLIA DA 0,375','BOTT',0,0,0,'N','NR','Bott 0,375','X',1,0.375,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,0.375,'BQ',1,'' )
,('02','UM',102,0,'BOTTIGLIA DA 0,500','BOTT',0,0,0,'N','NR','Bott 0,500','X',1,0.5,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,0.5,'BQ',1,'' )
,('02','UM',103,0,'BOTTIGLIA DA 0,700','BOTT',0,0,0,'N','NR','Bott 0,700','X',1,0.7,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,0.7,'BQ',1,'' )
,('02','UM',104,0,'BOTTIGLIA DA 0,750','BOTT',103,1,0,'N','NR','Bott 0,750','X',1,0.75,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,0.75,'BQ',1,'' )
,('02','UM',105,0,'BOTTIGLIA DA 1,000','BOTT',0,0,0,'N','NR','Bott 1,000','X',1,1,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,1,'BQ',1,'' )
,('02','UM',106,0,'BOTTIGLIA DA 1,500','BOTT',0,0,0,'N','NR','Bott 1,500','X',1,1.5,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,1.5,'BQ',1,'' )
,('02','UM',108,0,'BOTTIGLIA DA 3,000','BOTT',0,0,0,'N','NR','Bott 3,000','X',1,3,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,3,'BQ',1,'' )
,('02','UM',109,0,'BOTTIGLIA DA 5,000','BOTT',0,0,0,'N','NR','Bott 5,000','X',1,5,0,0,0,'',0,0,'',0,0,'',0,'N','S',1,0,5,'BQ',1,'' )
,('02','UM',206,0,'CARTONE 06 BOTTIGLIE 0,375','CRT 6',101,6,0,'N','NR','Crt  6 bott 0,375','X',6,2.25,0,0,0,'',0,0,'',0,0,'',0,'N','S',6,0,0.375,'BX',1,'' )
,('02','UM',212,0,'CARTONE 12 BOTTIGLIE 0,375','CRT12',101,12,0,'N','NR','Crt 12 bott 0,375','X',12,4.5,0,0,0,'',0,0,'',0,0,'',0,'N','S',12,0,0.375,'BX',1,'' )
,('02','UM',256,0,'CARTONE 06 BOTTIGLIE 0,500','CRT 6',102,6,0,'N','NR','Crt  6 bott 0,500','X',6,3,0,0,0,'',0,0,'',0,0,'',0,'N','S',6,0,0.5,'BX',1,'' )
,('02','UM',262,0,'CARTONE 12 BOTTIGLIE 0,500','CRT12',102,12,0,'N','NR','Crt 12 bott 0,500','X',12,9,0,0,0,'',0,0,'',0,0,'',0,'N','S',12,0,0.5,'BX',1,'' )
,('02','UM',356,0,'CARTONE 06 BOTTIGLIE 0,750','CRT 6',103,6,0,'N','NR','Crt  6 bott 0,750','X',6,4.5,0,0,0,'',0,0,'',0,0,'',0,'N','S',6,0,0.75,'BX',1,'N' )
,('02','UM',357,0,'CARTONE 06 BOTTIGLIE 1,000','CRT 6',104,6,0,'N','NR','Crt  6 bott 1,000','X',6,6,0,0,0,'',0,0,'',0,0,'',0,'N','S',6,0,1,'BX',1,'' )
,('02','UM',358,0,'CARTONE 06 BOTTIGLIE 1,500','CRT 6',105,6,0,'N','NR','Crt  6 bott 1,500','X',6,9,0,0,0,'',0,0,'',0,0,'',0,'N','S',6,0,1.5,'BX',1,'' )
,('02','UM',362,0,'CARTONE 12 BOTTIGLIE 0,750','CRT12',103,12,0,'N','NR','Crt 12 bott 0,750','X',12,9,0,0,0,'',0,0,'',0,0,'',0,'N','S',12,0,0.75,'BX',1,'' )
,('02','UM',412,0,'CARTONE 12 BOTTIGLIE 1,000','CRT12',104,12,0,'N','NR','Crt 12 bott 1,000','X',12,12,0,0,0,'',0,0,'',0,0,'',0,'N','S',12,0,1,'BX',1,'' )
,('02','UM',601,0,'BAG & BOX 03 LT','BB 03',0,0,0,'N','NR','Bag & Box  3,00','X',1,3,0,0,0,'',0,0,'',0,0,'',0,'N','S',0,0,3,'BX',1,'' )
,('02','UM',602,0,'BAG & BOX 05 LT','BB 03',0,0,0,'N','NR','Bag & Box  5,00','X',1,5,0,0,0,'',0,0,'',0,0,'',0,'N','S',0,0,5,'BX',1,'' )
,('02','UM',603,0,'BAG & BOX 10 LT','BB 03',0,0,0,'N','NR','Bag & Box  10,00','X',1,10,0,0,0,'',0,0,'',0,0,'',0,'N','S',0,0,10,'BX',1,'' )
,('02','UM',701,0,'FUSTO 25 LT','FS 25',0,0,0,'N','NR','Fusto 25,00','X',25,25,0,0,0,'',0,0,'',0,0,'',0,'N','S',0,0,25,'KG',1,'' )
,('02','UM',702,0,'FUSTO 30 LT','FS 30',0,0,0,'N','NR','Fusto 30,00','X',30,30,0,0,0,'',0,0,'',0,0,'',0,'N','S',0,0,30,'KG',1,'' )
,('02','UM',711,0,'KEGS 24 LT','KG 24',0,0,0,'N','NR','Kegs 24,00','X',24,24,0,0,0,'',0,0,'',0,0,'',0,'N','S',0,0,24,'KG',1,'' )
,('02','UM',712,0,'KEGS 30 LT','KG 30',0,0,0,'N','NR','Kegs 30,00','X',30,30,0,0,0,'',0,0,'',0,0,'',0,'N','S',0,0,30,'KG',1,'' )
,('02','UM',800,0,'ESPOSITORE DA 156 BOTTIGLIE','EX156',103,156,0,'N','NR','Espositore 156 bott.','X',156,117,0,0,0,'',0,0,'',0,0,'',0,'N','S',156,0,0.75,'',0,'N' )
,('02','UM',801,0,'ESPOSITORE DA 84 BOTTIGLIE','EX84B',103,84,0,'N','NR','Espositore 84 bott.','X',84,63,0,0,0,'',0,0,'',0,0,'',0,'N','S',84,0,0.75,'',0,'' )
,('02','UM',802,0,'BOX DUSSELDORF DA 144 BT','BO144',103,144,0,'N','NR','BOX DUSSELDORF 144 BT','X',144,108,0,0,0,'',0,0,'',0,0,'',0,'N','S',144,0,0.75,'',0,'N' )
,('02','UM',803,0,'BOX DUSSELDORF DA 156 BT','BO156',103,156,0,'N','NR','BOX DUSSELDORF 156 BT','X',156,117,0,0,0,'',0,0,'',0,0,'',0,'N','S',156,0,0.75,'',0,'N' )
,('02','UM',9999,0,'IMPORTO','IMP',0,0,0,'N','IM','','X',0,0,0,0,0,'',0,0,'',0,0,'',0,'N','N',0,0,0,'',0,'' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAVA', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAVL', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATBAZC', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATSOL1', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella ATSOLL', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella AULPNC', GetDate())
INSERT INTO dbo.AULPNC_01 VALUES
('02',1,'2021-01-01' )
,('02',2,NULL )
,('02',3,'2018-12-12' )
,('02',4,'2021-09-24' )
,('02',5,NULL )
,('02',6,'2021-01-01' )
,('02',7,NULL )
,('02',8,NULL )
,('02',9,NULL )
,('02',10,'2021-12-16' )
,('02',11,NULL )
,('02',12,NULL )
,('02',13,'2021-11-10' )
,('02',14,NULL )
,('02',15,NULL )
,('02',16,NULL )
,('02',17,NULL )
,('02',18,NULL )
,('02',19,NULL )
,('02',20,NULL )
,('02',21,NULL )
,('02',22,'2021-11-30' )
,('02',23,'2021-12-31' )
,('02',24,'2021-12-29' )
,('02',25,NULL )
,('02',26,NULL )
,('02',27,NULL )
,('02',28,'2021-10-25' )
,('02',29,NULL )
,('02',30,NULL )
,('02',31,NULL )
,('02',32,NULL )
,('02',33,NULL )
,('02',34,NULL )
,('02',35,NULL )
,('02',36,NULL )
,('02',37,NULL )
,('02',38,NULL )
,('02',39,NULL )
,('02',40,NULL )
,('02',41,NULL )
,('02',42,NULL )
,('02',43,NULL )
,('02',44,NULL )
,('02',45,NULL )
,('02',46,NULL )
,('02',47,NULL )
,('02',48,NULL )
,('02',49,NULL )
,('02',50,NULL )
,('02',51,NULL )
,('02',52,NULL )
,('02',54,NULL )
,('02',55,'2021-11-02' )
,('02',56,'2021-11-29' )
,('02',57,NULL )
,('02',58,'2020-11-25' )
,('02',59,'2017-01-31' )
,('02',60,NULL )
,('02',61,NULL )
,('02',62,'2021-11-29' )
,('02',63,'2018-07-27' )
,('02',64,NULL )
,('02',65,NULL )
,('02',66,'2017-08-23' )
,('02',67,NULL )
,('02',68,NULL )
,('02',69,'2018-08-08' )
,('02',70,NULL )
,('02',71,NULL )
,('02',72,NULL )
,('02',73,NULL )
,('02',74,NULL )
,('02',75,NULL )
,('02',76,NULL )
,('02',77,'2021-12-30' )
,('02',78,'2020-01-24' )
,('02',79,NULL )
,('02',80,NULL )
,('02',81,NULL )
,('02',82,NULL )
,('02',83,NULL )
,('02',84,NULL )
,('02',85,NULL )
,('02',86,NULL )
,('02',87,NULL )
,('02',88,'2021-12-03' )
,('02',89,'2018-05-02' )
,('02',90,NULL )
,('02',91,NULL )
,('02',92,NULL )
,('02',93,'2017-09-18' )
,('02',94,NULL )
,('02',95,'2017-09-04' )
,('02',96,NULL )
,('02',97,'2017-05-08' )
,('02',98,'2018-04-03' )
,('02',99,'2021-01-01' )
,('02',100,'2018-11-30' )
,('02',101,'2017-11-08' )
go
INSERT INTO dbo.AULPNC_01 VALUES
('02',102,'2017-09-26' )
,('02',103,'2021-01-01' )
,('02',104,'2017-11-30' )
,('02',105,'2018-07-30' )
,('02',106,'2018-02-05' )
,('02',107,NULL )
,('02',108,'2021-04-13' )
,('02',109,NULL )
,('02',110,'2018-03-27' )
,('02',111,'2019-03-26' )
,('02',112,'2018-06-15' )
,('02',113,'2021-11-02' )
,('02',114,'2021-09-16' )
,('02',115,NULL )
,('02',116,'2018-08-22' )
,('02',117,'2021-01-01' )
,('02',118,'2021-08-31' )
,('02',119,'2019-11-26' )
,('02',120,'2021-04-19' )
,('02',121,'2020-04-27' )
,('02',122,NULL )
,('02',123,'2021-12-29' )
,('02',124,NULL )
,('02',125,NULL )
,('02',126,NULL )
,('02',127,NULL )
,('02',128,NULL )
,('02',129,'2021-12-30' )
,('02',130,'2021-10-20' )
,('02',131,'2021-11-30' )
,('02',132,'2021-01-01' )
,('02',133,'2021-01-01' )
,('02',134,'2021-02-16' )
,('02',135,'2020-02-24' )
,('02',136,'2021-08-04' )
,('02',137,'2021-09-13' )
,('02',138,NULL )
,('02',139,'2021-12-15' )
,('02',140,NULL )
,('02',141,'2021-12-22' )
,('02',142,'2020-09-14' )
,('02',143,'2020-10-08' )
,('02',144,NULL )
,('02',145,'2020-11-26' )
,('02',146,'2021-04-08' )
,('02',147,NULL )
,('02',148,'2021-09-09' )
,('02',149,NULL )
,('02',150,NULL )
,('02',151,NULL )
,('02',152,NULL )
,('02',153,'2021-07-02' )
,('02',154,'2021-11-03' )
,('02',155,'2021-11-24' )
,('02',156,NULL )
,('02',157,NULL )
,('02',158,'2021-12-09' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella AULPNF', GetDate())
INSERT INTO dbo.AULPNF_01 VALUES
('02',1,'2021-12-15' )
,('02',2,'2021-12-30' )
,('02',3,'2021-12-30' )
,('02',4,NULL )
,('02',5,'2017-04-18' )
,('02',6,'2019-10-31' )
,('02',7,'2021-12-16' )
,('02',8,NULL )
,('02',9,'2021-08-25' )
,('02',10,'2020-01-24' )
,('02',11,'2021-01-19' )
,('02',12,'2021-08-31' )
,('02',13,'2021-08-02' )
,('02',14,'2021-12-16' )
,('02',15,'2021-09-30' )
,('02',16,NULL )
,('02',17,'2021-05-01' )
,('02',18,NULL )
,('02',19,NULL )
,('02',20,'2018-09-21' )
,('02',21,NULL )
,('02',22,'2021-10-29' )
,('02',23,NULL )
,('02',24,'2019-01-10' )
,('02',25,'2017-02-28' )
,('02',26,'2021-12-15' )
,('02',27,'2021-06-30' )
,('02',28,'2021-08-31' )
,('02',29,'2020-06-22' )
,('02',30,'2021-11-29' )
,('02',31,'2020-10-22' )
,('02',32,'2020-11-30' )
,('02',33,'2021-10-12' )
,('02',34,'2021-03-05' )
,('02',35,'2021-07-06' )
,('02',36,'2021-03-05' )
,('02',37,'2017-05-31' )
,('02',38,'2018-08-29' )
,('02',39,'2021-02-28' )
,('02',40,'2021-01-01' )
,('02',41,'2018-06-26' )
,('02',42,'2021-01-05' )
,('02',43,'2020-11-30' )
,('02',44,'2021-12-30' )
,('02',45,'2017-05-02' )
,('02',46,'2020-10-22' )
,('02',47,'2021-12-16' )
,('02',48,'2021-01-01' )
,('02',49,'2018-04-03' )
,('02',50,'2018-03-23' )
,('02',51,'2017-04-30' )
,('02',52,'2021-11-30' )
,('02',53,'2020-11-27' )
,('02',54,'2021-05-31' )
,('02',55,'2017-02-09' )
,('02',56,'2021-08-31' )
,('02',57,'2017-03-03' )
,('02',58,'2017-03-13' )
,('02',59,'2017-03-13' )
,('02',60,'2017-03-13' )
,('02',61,'2017-05-31' )
,('02',62,'2017-05-31' )
,('02',63,'2018-07-23' )
,('02',64,'2019-07-31' )
,('02',65,'2017-10-04' )
,('02',66,'2017-10-13' )
,('02',67,'2017-07-20' )
,('02',68,'2021-11-30' )
,('02',69,'2020-09-30' )
,('02',70,'2017-08-15' )
,('02',71,'2021-08-25' )
,('02',72,'2017-10-09' )
,('02',73,'2017-08-31' )
,('02',74,'2021-01-01' )
,('02',75,'2021-11-30' )
,('02',76,'2021-02-28' )
,('02',77,'2017-09-19' )
,('02',78,'2019-01-28' )
,('02',79,'2021-11-29' )
,('02',80,'2019-11-30' )
,('02',81,'2017-10-31' )
,('02',82,'2021-12-30' )
,('02',83,'2019-06-03' )
,('02',84,'2021-10-12' )
,('02',85,'2021-04-28' )
,('02',86,'2021-06-30' )
,('02',87,'2018-02-26' )
,('02',88,'2018-02-06' )
,('02',89,'2021-08-31' )
,('02',90,'2021-11-30' )
,('02',91,'2019-12-02' )
,('02',92,'2018-11-28' )
,('02',93,'2018-08-15' )
,('02',94,'2020-10-23' )
,('02',95,'2018-09-13' )
,('02',96,'2018-09-13' )
,('02',97,'2019-07-29' )
,('02',98,'2018-11-14' )
,('02',99,'2021-01-01' )
,('02',100,NULL )
go
INSERT INTO dbo.AULPNF_01 VALUES
('02',923,'2019-12-31' )
,('02',924,'2021-12-30' )
,('02',925,'2018-06-01' )
,('02',926,'2020-01-02' )
,('02',927,'2021-11-30' )
,('02',928,'2020-12-31' )
,('02',929,'2019-12-11' )
,('02',930,'2019-09-05' )
,('02',931,'2021-01-12' )
,('02',932,'2021-11-15' )
,('02',933,'2019-05-31' )
,('02',934,'2020-12-31' )
,('02',935,'2019-06-30' )
,('02',936,'2021-09-30' )
,('02',937,'2020-01-08' )
,('02',938,'2021-10-29' )
,('02',939,'2020-12-31' )
,('02',940,'2021-03-31' )
,('02',941,'2020-01-02' )
,('02',942,'2021-09-10' )
,('02',943,'2019-09-10' )
,('02',944,'2021-01-31' )
,('02',945,'2019-10-24' )
,('02',946,'2019-09-30' )
,('02',947,'2021-11-29' )
,('02',948,'2020-02-11' )
,('02',949,'2019-10-31' )
,('02',950,'2020-02-11' )
,('02',951,'2021-02-01' )
,('02',952,'2021-08-27' )
,('02',953,'2020-11-27' )
,('02',954,'2021-12-31' )
,('02',955,'2020-04-23' )
,('02',956,'2020-02-11' )
,('02',957,'2021-12-16' )
,('02',958,'2021-05-28' )
,('02',959,'2020-09-30' )
,('02',960,'2021-06-11' )
,('02',961,'2020-09-01' )
,('02',962,'2020-10-31' )
,('02',963,'2021-12-31' )
,('02',964,'2021-01-31' )
,('02',965,'2021-12-30' )
,('02',966,'2021-07-28' )
,('02',967,'2021-05-31' )
,('02',968,'2021-08-25' )
,('02',969,'2021-12-15' )
,('02',970,'2020-07-23' )
,('02',971,'2020-08-31' )
,('02',972,'2020-07-15' )
,('02',973,'2020-09-30' )
,('02',974,'2020-06-30' )
,('02',975,'2020-07-31' )
,('02',976,'2020-07-31' )
,('02',977,'2020-07-31' )
,('02',978,'2020-09-30' )
,('02',979,'2020-09-30' )
,('02',980,NULL )
,('02',981,NULL )
,('02',982,'2020-09-30' )
,('02',983,NULL )
,('02',984,'2020-11-27' )
,('02',985,'2021-12-01' )
,('02',986,NULL )
,('02',987,NULL )
,('02',988,'2021-09-12' )
,('02',989,'2020-12-23' )
,('02',990,'2020-11-30' )
,('02',991,'2021-01-12' )
,('02',992,'2021-11-15' )
,('02',993,NULL )
,('02',994,'2021-06-30' )
,('02',995,'2021-08-31' )
,('02',996,'2021-09-12' )
,('02',997,'2021-09-30' )
,('02',998,'2021-11-15' )
,('02',999,'2021-11-15' )
,('02',1000,'2021-11-15' )
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella AVALRF', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella AVALRP', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella AVEPC1', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella AVEPC2', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella AVEPC3', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella AVEPC4', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella AVSO72', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: popolamento tabella AVUOTI', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella A12PEN_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.A12PEN_01 (ID_AZI,ID_VEN,CODSOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACEST_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AACEST_01 (ID_AZI,CODMAG,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQU1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AACQU1_01 (ID_AZI,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AACQU1_01 (ID_AZI,CODFOR,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AACQU1_01 (ID_AZI,DTABOL,CODFOR,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.AACQU1_01 (ID_AZI,CODFOR,NUMREG,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY05 ON dbo.AACQU1_01 (ID_AZI,CODFOR,DATFAT,NUMFAT,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQU2_TA', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AACQU2_TA (ID_AZI,NUMBOL,TIPREC,NUMREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQU5_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AACQU5_01 (ID_AZI,NUMBOL,NUMRIG,TIPCOM,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQU6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AACQU6_01 (ID_AZI,NUMREG,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AACQU6_01 (ID_AZI,NUMBOL,NUMREG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQU7_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AACQU7_01 (ID_AZI,NUMBOL,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQUA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AACQUA_01 (ID_AZI,NUMBOL,NUMRIG,CODANA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQUQ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AACQUQ_01 (ID_AZI,NUMBOL,NUMRIG,CODVAS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQUY_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AACQUY_01 (ID_AZI,NUMBOL,CODART,ANNATA,LOTTOS,NRSSCC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AACQUY_01 (ID_AZI,NRSSCC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AACQUZ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AACQUZ_01 (ID_AZI,NUMBOL,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCA1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCA1_01 (ID_AZI,CODUNO,CODDUE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AANCA1_01 (ID_AZI,DESCRI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCA2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCA2_01 (ID_AZI,CODUNO,CODDUE,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCL1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCL1_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AANCL1_01 (ID_AZI,RAGSOC,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AANCL1_01 (ID_AZI,PARIVA,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCL2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCL2_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCL3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCL3_01 (ID_AZI,CODICE,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCL4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCL4_01 (ID_AZI,CODECC,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AANCL4_01 (ID_AZI,CODICE,CODECC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCL6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCL6_01 (ID_AZI,CODICE,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCL8_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCL8_01 (ID_AZI,CODCLI,CODICE,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCL9_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCL9_01 (ID_AZI,CODCLI,CODDIC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCLE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCLE_01 (ID_AZI,TIPREC,CODCLI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AANCLE_01 (ID_AZI,TIPREC,RAGSOC,CODCLI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCLF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCLF_01 (ID_AZI,TIPREC,CODCLI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AANCLF_01 (ID_AZI,TIPREC,RAGSOC,CODCLI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCLG_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCLG_01 (ID_AZI,TIPREC,CODCLI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCLI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCLI_01 (ID_AZI,TIPREC,CODCLI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AANCLI_01 (ID_AZI,TIPREC,RAGSOC,CODCLI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCLM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCLM_01 (ID_AZI,TIPREC,CODCLI,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCLN_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCLN_01 (ID_AZI,TIPREC,CODCLI,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANCLO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANCLO_01 (ID_AZI,CODCLI,NUMFID)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANFO1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANFO1_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AANFO1_01 (ID_AZI,RAGSOC,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AANFO1_01 (ID_AZI,PARIVA,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANFO2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANFO2_01 (ID_AZI,CODICE,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANFO3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANFO3_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANFO4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANFO4_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANFO5_DA', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANFO5_DA (ID_AZI,TIPREC,CODFOR,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AANNCC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AANNCC_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AANNCC_01 (ID_AZI,DESCRI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTAL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTAL_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AARTAL_01 (ID_AZI,CODALY,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTC2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTC2_01 (ID_AZI,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTCE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTCE_01 (ID_AZI,CODCLI,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AARTCE_01 (ID_AZI,CODART,CODCLI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AARTCE_01 (ID_AZI,ARTCLI,CODCLI,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.AARTCE_01 (ID_AZI,ARTCLI,CODART,CODCLI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTCV_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTCV_01 (ID_AZI,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTDA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTDA_01 (ID_AZI,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTDD_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTDD_01 (ID_AZI,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTI1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTI1_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AARTI1_01 (ID_AZI,DESCRI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AARTI1_01 (ID_AZI,CODABB,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTI3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTI3_01 (ID_AZI,CODART,CODCMP)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AARTI3_01 (ID_AZI,CODCMP,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTI5_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTI5_01 (ID_AZI,CODART,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTI6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTI6_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTI9_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTI9_01 (ID_AZI,CODART,CODCLI,ARTCLI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AARTI9_01 (ID_AZI,CODCLI,ARTCLI,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AARTI9_01 (ID_AZI,ARTCLI,CODCLI,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AARTPA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AARTPA_01 (ID_AZI,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABANAZ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABANAZ_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ABANAZ_01 (ID_AZI,CODGRU,CODCON,CODSOT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLL1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLL1_01 (ID_AZI,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ABOLL1_01 (ID_AZI,CODCLI,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ABOLL1_01 (ID_AZI,DTABOL,CODCLI,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLL5_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLL5_01 (ID_AZI,NUMBOL,NUMRIG,TIPCOM,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLL6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLL6_01 (ID_AZI,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ABOLL6_01 (ID_AZI,NUMSPE,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLL7_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLL7_01 (ID_AZI,NUMBOL,NUMRIG,TIPCOM,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLL8_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLL8_01 (ID_AZI,NUMBOL,NUMRIG,NUMCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ABOLL8_01 (ID_AZI,NUMPRO,NUMBOL,NUMRIG,NUMCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLL9_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLL9_01 (ID_AZI,NUMBOL,NUMRIG,NUMCOM,NUMLOT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ABOLL9_01 (ID_AZI,LOTTOS,DTASCA,SPACES,NUMBOL,NUMRIG,NUMCOM,NUMLOT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ABOLL9_01 (ID_AZI,CODART,ANNATA,LOTTOS,DTASCA,SPACES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLA_01 (ID_AZI,CODART,DATBOL,NUMBOL,NUMRIG,CODLOT,TIPQTA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ABOLLA_01 (ID_AZI,DATBOL,NUMBOL,NUMRIG,CODLOT,TIPQTA,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLB_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLB_01 (ID_AZI,NUMBOL,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLC_01 (ID_AZI,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLD_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLD_01 (ID_AZI,NUMBOL,DATSCA,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLE_01 (ID_AZI,NUMBOL,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLQ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLQ_01 (ID_AZI,NUMBOL,NUMRIG,FLAGPA,CODVAS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLS_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLS_01 (ID_AZI,NUMBOL,NUMRIG,CODSSC,LOTTOS,SPACES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ABOLLS_01 (ID_AZI,CODSSC,LOTTOS,SPACES,NUMBOL,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLT_01 (ID_AZI,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLU_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLU_01 (ID_AZI,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLV_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLV_01 (ID_AZI,NUMBOL,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLY_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLY_01 (ID_AZI,NUMBOL,CODART,ANNATA,LOTTOS,NRSSCC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ABOLLY_01 (ID_AZI,NRSSCC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ABOLLZ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ABOLLZ_01 (ID_AZI,NUMBOL,NUMRIG,NUMCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACAEDI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACAEDI_01 (ID_AZI,CODCLI,ARTCLI,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACAEDI_01 (ID_AZI,CODART,CODCLI,ARTCLI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACAEDI_01 (ID_AZI,ARTCLI,CODCLI,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACATA1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACATA1_01 (ID_AZI,ID_VEN,CODSOC,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACATA1_01 (ID_AZI,ID_VEN,CODSOC,CODUVA,CODCOM,CODZON,CODLOC,VIGNET)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACATA4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACATA4_01 (ID_AZI,ID_VEN,CODSOC,NUMRIG,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACATA5_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACATA5_01 (ID_AZI,ID_VEN,CODSOC,NUMRIG,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACATA8_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACATA8_01 (ID_AZI,ID_VEN,CODSOC,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACAUSV_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACAUSV_01 (ID_AZI,CODCLI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACCINR_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACCINR_01 (ID_AZI,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACCINR_01 (ID_AZI,NUMDAA,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACCINR_01 (ID_AZI,CODREG,DTAMOV,PROACC,NUMDAA,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.ACCINR_01 (ID_AZI,NUMDAA,TIPRIG,PROACC,CODCPA,NOMCOM,CODTAR,CODCAD,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY05 ON dbo.ACCINR_01 (ID_AZI,CODREG,DTAMOV,PROACC,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDV56_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDV56_01 (ID_AZI,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVK3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVK3_01 (ID_AZI,CODCLI,CODART,ANNATA,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVK3_01 (ID_AZI,CODCLI,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVK4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVK4_01 (ID_AZI,CODCLI,CODDES,CODART,ANNATA,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVK4_01 (ID_AZI,CODCLI,CODDES,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVL1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVL1_01 (ID_AZI,CODLIS,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVL1_01 (ID_AZI,CODART,ANNATA,CODLIS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVL6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVL6_01 (ID_AZI,CODLIS,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVL6_01 (ID_AZI,CODART,ANNATA,CODLIS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVLR_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVLR_01 (ID_AZI,CODLIS,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVLR_01 (ID_AZI,CODART,ANNATA,CODLIS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVLT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVLT_01 (ID_AZI,CODCLI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVMD_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVMD_01 (ID_AZI,CODCLI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVME_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVME_01 (ID_AZI,CODZON,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVNC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVNC_01 (ID_AZI,CODLIS,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVNC_01 (ID_AZI,CODLIS,CODART,ANNATA,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVND_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVND_01 (ID_AZI,CODCLI,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVND_01 (ID_AZI,CODCLI,CODART,ANNATA,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVNE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVNE_01 (ID_AZI,CODLIS,DTAFIN,DTAINI,FINQTA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVNF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVNF_01 (ID_AZI,CODLIS,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVNF_01 (ID_AZI,CODLIS,CODART,ANNATA,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACDVNF_01 (ID_AZI,CODART,ANNATA,DTAFIN,DTAINI,CODLIS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVNG_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVNG_01 (ID_AZI,CODCLI,DTAFIN,DTAINI,CODART,ANNATA,CODATT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVNG_01 (ID_AZI,CODCLI,CODART,ANNATA,CODATT,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVNH_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVNH_01 (ID_AZI,CODLIS,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVNH_01 (ID_AZI,CODLIS,CODART,ANNATA,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACDVNH_01 (ID_AZI,CODART,ANNATA,DTAFIN,DTAINI,CODLIS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVNI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVNI_01 (ID_AZI,CODCLI,DTAFIN,DTAINI,CODART,ANNATA,CATSCO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVNI_01 (ID_AZI,CODCLI,CODART,ANNATA,CATSCO,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVNM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVNM_01 (ID_AZI,CODLIS,DTAFIN,DTAINI,CODART,ANNATA,QTCINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVNM_01 (ID_AZI,CODLIS,CODART,ANNATA,DTAFIN,DTAINI,QTCINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACDVNM_01 (ID_AZI,CODART,ANNATA,DTAFIN,DTAINI,CODLIS,QTCINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.ACDVNM_01 (ID_AZI,CODLIS,QTCINI,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVNN_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVNN_01 (ID_AZI,CODCLI,CODDES,DTAFIN,DTAINI,CODART,ANNATA,CODLIN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVNN_01 (ID_AZI,CODCLI,CODDES,CODART,ANNATA,DTAFIN,DTAINI,CODLIN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACDVNN_01 (ID_AZI,CODCLI,CODDES,CODLIN,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVNO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVNO_01 (ID_AZI,CODCLI,CODDES,DTAFIN,DTAINI,CODART,ANNATA,CODLIN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVNO_01 (ID_AZI,CODCLI,CODDES,CODART,ANNATA,DTAFIN,DTAINI,CODLIN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACDVNO_01 (ID_AZI,CODCLI,CODDES,CODLIN,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVP1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVP1_01 (ID_AZI,CODAGE,TIPCLI,CATPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVP4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVP4_01 (ID_AZI,CODAGE,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVPJ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVPJ_01 (ID_AZI,CODAGE,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVPJ_01 (ID_AZI,CODAGE,CODART,ANNATA,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVPR_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVPR_01 (ID_AZI,CODCLI,CODDES,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVQ2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVQ2_01 (ID_AZI,CODAGE,CODLIS,CATPRO,CAPREP)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVQ2_01 (ID_AZI,CODAGE,CODLIS,CAPREP,CATPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVQ3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVQ3_01 (ID_AZI,NUMATT,CODAGE,CODATT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVQ3_01 (ID_AZI,CODAGE,NUMATT,CODATT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVQC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVQC_01 (ID_AZI,CODAGE,TIPCLI,CODCLI,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVQC_01 (ID_AZI,CODAGE,TIPCLI,CODCLI,CODART,ANNATA,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVQD_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVQD_01 (ID_AZI,CODCAP,CODAGE,TIPCLI,CODCLI,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVQD_01 (ID_AZI,CODCAP,CODAGE,TIPCLI,CODCLI,CODART,ANNATA,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVQE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVQE_01 (ID_AZI,CODAGE,TIPCLI,CODCLI,DTAFIN,DTAINI,CATPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVQE_01 (ID_AZI,CODAGE,TIPCLI,CODCLI,CATPRO,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVQF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVQF_01 (ID_AZI,CODCAP,CODAGE,TIPCLI,CODCLI,DTAFIN,DTAINI,CATPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACDVQF_01 (ID_AZI,CODCAP,CODAGE,TIPCLI,CODCLI,CATPRO,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVS1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVS1_01 (ID_AZI,TIPCLI,QTCFIN,DTAFIN,QTCINI,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVT3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVT3_01 (ID_AZI,CODCLI,CODDES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACDVX4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACDVX4_01 (ID_AZI,CODCLI,SPACES,ANNATA,TIPREC,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACFFCC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACFFCC_01 (ID_AZI,CODCEC,CODCAT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACLEDI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACLEDI_01 (ID_AZI,CODCLI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACNTF1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACNTF1_01 (ID_AZI,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACNTF1_01 (ID_AZI,CODFOR,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACNTF1_01 (ID_AZI,ANNOCO,CODFOR,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACNTF2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACNTF2_01 (ID_AZI,NUMCON,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACNTF3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACNTF3_01 (ID_AZI,NUMCON,NUMRIG,TIPCOM,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACNTF4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACNTF4_01 (ID_AZI,NUMCON,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACNTF5_NO', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACNTF5_NO (ID_AZI,NUMCON,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACNTF6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACNTF6_01 (ID_AZI,NUMCON,TIPCOM,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONC1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONC1_01 (ID_AZI,NUMINT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACONC1_01 (ID_AZI,TIPCOD,CODICE,RAGSOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACONC1_01 (ID_AZI,TIPCOD,INTERL,CODICE,NUMINT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.ACONC1_01 (ID_AZI,TIPCOD,RAGSOC,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY05 ON dbo.ACONC1_01 (ID_AZI,TIPCOD,INTERL,RAGSOC,CODICE,NUMINT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY06 ON dbo.ACONC1_01 (ID_AZI,INTERL,NUMINT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONC3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONC3_01 (ID_AZI,NUMINT,CODTSK,DATASK)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONC4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONC4_01 (ID_AZI,NUMINT,CODTSK,DATASK,NUMREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONF1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONF1_01 (ID_AZI,ID_VEN,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACONF1_01 (ID_AZI,ID_VEN,CODSOC,CODUVA,FONZON,FONLOC,FONVIG,CLASSE,DTACON,ORAENT,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACONF1_01 (ID_AZI,ID_VEN,NUMPRE,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.ACONF1_01 (ID_AZI,ID_VEN,DTACON,CODUVA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONFD_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONFD_01 (ID_AZI,ID_VEN,NUMCON,DTADEC,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACONFD_01 (ID_AZI,ID_VEN,NUMCON,CODUVA,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONT1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONT1_01 (ID_AZI,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACONT1_01 (ID_AZI,CODCLI,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACONT1_01 (ID_AZI,ANNOCO,CODCLI,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONT2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONT2_01 (ID_AZI,NUMCON,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONT3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONT3_01 (ID_AZI,NUMCON,NUMRIG,TIPCOM,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONT5_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONT5_01 (ID_AZI,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONT6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONT6_01 (ID_AZI,NUMCON,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACONTU_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACONTU_01 (ID_AZI,NUMCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACOSVA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACOSVA_01 (ID_AZI,CODMAG,DTAFIN,DTAINI,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACOSVA_01 (ID_AZI,CODMAG,CODART,ANNATA,DTAFIN,DTAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACOTR1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACOTR1_01 (ID_AZI,CODTRA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACOTR2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACOTR2_01 (ID_AZI,CODTRA,ZONCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACPCAA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACPCAA_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACROSO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACROSO_01 (ID_AZI,GRUCLI,CONCLI,SOTCLI,TIPSOL,ANNPAR,NUMPAR,NUMSCA,PROSCA,DATSOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ACROSO_01 (ID_AZI,TIPSOL,GRUCLI,CONCLI,SOTCLI,ANNPAR,NUMPAR,NUMSCA,PROSCA,DATSOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ACROSO_01 (ID_AZI,GRUCLI,CONCLI,SOTCLI,DATSOL,TIPSOL,CODTIP)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACRTPA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACRTPA_01 (ID_AZI,CODCLI,CODDES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ACRTPL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ACRTPL_01 (ID_AZI,CODCLI,CODDES,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ADATRE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ADATRE_01 (ID_AZI,ID_VEN,DATREG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ADDOC2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ADDOC2_01 (ID_AZI,ID_VEN,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ADDOC3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ADDOC3_01 (ID_AZI,ID_VEN,CODICE,CODUVA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ADDOC3_01 (ID_AZI,ID_VEN,CODUVA,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ADECSO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ADECSO_01 (ID_AZI,ID_VEN,CODUVA,CODDEC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ADEI12_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ADEI12_01 (ID_AZI,ID_VEN,CODSOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AFASMV_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AFASMV_01 (ID_AZI,NUMERO,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AFASMV_01 (ID_AZI,NSERIE,DTAMOV,NUMERO,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AFASMV_01 (ID_AZI,DTAMOV,NUMERO,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AFASPA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AFASPA_01 (ID_AZI,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AFASPR_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AFASPR_01 (ID_AZI,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AFASSE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AFASSE_01 (ID_AZI,NSERIE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AFASSF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AFASSF_01 (ID_AZI,NSERIE,IDFAMI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AFATT1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AFATT1_01 (ID_AZI,NUMFAT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AFATT1_01 (ID_AZI,CODCLI,DTAIVA,NUMIVA,NUMFAT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AFATT1_01 (ID_AZI,DTAIVA,NUMIVA,NUMFAT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AFATTT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AFATTT_01 (ID_AZI,NUMFAT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AFATTZ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AFATTZ_01 (ID_AZI,NUMFAT,NUMRIG,NUMCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AFESOR_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AFESOR_01 (ID_AZI,NUMERO,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AFESOT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AFESOT_01 (ID_AZI,CODICE,CODSOC,ANNIVA,TIPDOC,NUMDOC,DATDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AFESOT_01 (ID_AZI,CODICE,IDAGYO,CODSOC,ANNIVA,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AFESOT_01 (ID_AZI,CODICE,CODSOC,ANNIVA,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.AFESOT_01 (ID_AZI,CODSOC,ANNIVA,TIPDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY05 ON dbo.AFESOT_01 (ID_AZI,KEY005)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AGGFRP_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AGGFRP_01 (ID_AZI,NUMATT,CODATT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AIMPCA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AIMPCA_01 (ID_AZI,CODAGE,ANNATA,NUMMES,CODCON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AINTBO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AINTBO_01 (ID_AZI,TIPREG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AINTLC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AINTLC_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ALIPV1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ALIPV1_01 (ID_AZI,CODPVN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ALIPV2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ALIPV2_01 (ID_AZI,CODMAG,CODPVN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ALISO1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ALISO1_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ALISO2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ALISO2_01 (ID_AZI,CODICE,DATINS,NUMPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ALISO4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ALISO4_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ALISO5_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ALISO5_01 (ID_AZI,CODICE,TIPREC,DATMOV,CODCAU)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ALISO5_01 (ID_AZI,CODICE,DATMOV,CODCAU,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ALISO5_01 (ID_AZI,TIPREC,DATMOV,CODCAU)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ALOEDI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ALOEDI_01 (ID_AZI,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ALOEDI_01 (ID_AZI,CODCLI,DATINV,TIPDOC,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ALOEDI_01 (ID_AZI,CODCLI,TIPDOC,DATINV,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.ALOEDI_01 (ID_AZI,DATINV,CODCLI,TIPDOC,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY05 ON dbo.ALOEDI_01 (ID_AZI,TIPDOC,DATINV,CODCLI,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ALSP01_01', GetDate())
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ALSP02_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ALSP02_01 (ID_AZI,CODICE,TIPREC,DATMOV,CODCAU)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ALSP02_01 (ID_AZI,CODICE,DATMOV,CODCAU,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ALSP02_01 (ID_AZI,TIPREC,DATMOV,CODCAU)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AMMAG1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AMMAG1_01 (ID_AZI,NUMERO,NRRIGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AMMAG1_01 (ID_AZI,CODART,ANNATA,NLOTTO,DTAMOV,NUMERO,NRRIGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AMMAG1_01 (ID_AZI,DTAMOV,NUMERO,NRRIGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.AMMAG1_01 (ID_AZI,CODART,ANNATA,DTAMOV,NUMERO,NRRIGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY05 ON dbo.AMMAG1_01 (ID_AZI,CODMAG,CODART,ANNATA,NLOTTO,DTAMOV,NUMERO,NRRIGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AMOCA1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AMOCA1_01 (ID_AZI,CODUNO,CODDUE,DTAMOV,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AMOCA2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AMOCA2_01 (ID_AZI,CODUNO,CODDUE,DTAMOV,PROGRE,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AMOVLI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AMOVLI_01 (ID_AZI,CODICE,NUMLIB,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AMOVLI_01 (ID_AZI,FLGSTA,CODICE,NUMLIB,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AMOVLI_01 (ID_AZI,CODICE,COMLIB,COMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AMQPAL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AMQPAL_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ANPCAA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ANPCAA_01 (ID_AZI,CODSOC,PROGRE,PRONOT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ANUOI2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ANUOI2_01 (ID_AZI,ID_VEN,CODUVA,FLGTIP,ANNLIM,VITLIM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ANUOIM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ANUOIM_01 (ID_AZI,ID_VEN,CODUVA,ANNLIM,VITLIM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDF1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDF1_01 (ID_AZI,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AORDF1_01 (ID_AZI,CODFOR,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AORDF1_01 (ID_AZI,DTAORD,CODFOR,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDF5_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDF5_01 (ID_AZI,NUMORD,NUMRIG,TIPCOM,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDFU_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDFU_01 (ID_AZI,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDFZ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDFZ_01 (ID_AZI,NUMORD,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDI1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDI1_01 (ID_AZI,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AORDI1_01 (ID_AZI,CODCLI,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AORDI1_01 (ID_AZI,DTAORD,CODCLI,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDI5_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDI5_01 (ID_AZI,NUMORD,NUMRIG,TIPCOM,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDIL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDIL_01 (ID_AZI,NUMORD,NUMRIG,NUMCOM,NUMLOT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AORDIL_01 (ID_AZI,LOTTOS,DTASCA,SPACES,NUMORD,NUMRIG,NUMCOM,NUMLOT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AORDIL_01 (ID_AZI,CODART,ANNATA,LOTTOS,DTASCA,SPACES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDIR_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDIR_01 (ID_AZI,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AORDIR_01 (ID_AZI,NUMCLI,DATCLI,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AORDIR_01 (ID_AZI,NUMAGE,DATAGE,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDIT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDIT_01 (ID_AZI,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDIU_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDIU_01 (ID_AZI,NUMORD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AORDIZ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AORDIZ_01 (ID_AZI,NUMORD,NUMRIG,NUMCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAGDL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAGDL_01 (ID_AZI,CODAGE,DATDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAPSO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAPSO_01 (ID_AZI,CODGRU,CODCON,CODSOC,ANNPAR,NUMPAR,DATSCA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APARAC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APARAC_01 (ID_AZI,CODGRU,CODCON,CODCLI,ANNPAR,NUMPAR,DATSCA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APARAF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APARAF_01 (ID_AZI,CODGRU,CODCON,CODFOR,ANNPAR,NUMPAR,DATSCA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APARAP_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APARAP_01 (ID_AZI,CODGRU,CODCON,CODSOC,ANNPAR,NUMPAR,DATSCA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APARIM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APARIM_01 (ID_AZI,NOMPGM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAZAA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAZAA_01 (ID_AZI,TIPREC,NUMATT,CODATT,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAZAC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAZAC_01 (ID_AZI,TIPREC,NUMATT,CODATT,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAZAG_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAZAG_01 (ID_AZI,TIPREC,NUMATT,CODATT,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAZCF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAZCF_01 (ID_AZI,TIPREC,CODICE,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAZCL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAZCL_01 (ID_AZI,TIPREC,CODICE,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAZDA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAZDA_01 (ID_AZI,TIPREC,CODNAZ,PROACC,GRAFIN,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAZDC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAZDC_01 (ID_AZI,TIPREC,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAZMV_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAZMV_01 (ID_AZI,TIPREC,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAZPS_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAZPS_01 (ID_AZI,TIPREC,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APAZPT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APAZPT_01 (ID_AZI,TIPREC,CODVIN,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APCEDI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APCEDI_01 (ID_AZI,CODCLI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APCOR1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APCOR1_01 (ID_AZI,TIPREC,CODREG,NUMREG,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APCORI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APCORI_01 (ID_AZI,TIPREC,CODREG,NUMREG,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APEDR1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APEDR1_01 (ID_AZI,CODMAG,CODART,ANNATA,AAAAAA,MMMMMM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APEDR1_01 (ID_AZI,CODMAG,AAAAAA,MMMMMM,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APERPA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APERPA_01 (ID_AZI,CODPRA,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APESAT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APESAT_01 (ID_AZI,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APESAT_01 (ID_AZI,FLAGCF,CODCLF,DTAENT,FLAGEU,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.APESAT_01 (ID_AZI,DTAENT,FLAGEU,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.APESAT_01 (ID_AZI,FLAGEU,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APICO1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APICO1_01 (ID_AZI,CODGRU,CODCON,CODSOT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APICO1_01 (ID_AZI,CODGRU,CODCON,DESCRI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APICO2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APICO2_01 (ID_AZI,CODGRU,CODCON,CODSOT,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APQA12_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APQA12_01 (ID_AZI,ID_VEN,DATLIM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APRCA1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APRCA1_01 (ID_AZI,CODCAP,CODAGE,DATDOC,TIPDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APRCA1_01 (ID_AZI,CODCAP,CODAGE,DATDOC,TIPDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.APRCA1_01 (ID_AZI,TIPDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.APRCA1_01 (ID_AZI,DATDOC,TIPDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APRCAR_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APRCAR_01 (ID_AZI,CODCAP,CODAGE,TIPDOC,NUMDOC,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APRCAT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APRCAT_01 (ID_AZI,CODCAP,CODAGE,DATDOC,TIPDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APRCAT_01 (ID_AZI,FLGPAG,CODCAP,CODAGE,DATDOC,TIPDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.APRCAT_01 (ID_AZI,TIPDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.APRCAT_01 (ID_AZI,DATDOC,TIPDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APROA1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APROA1_01 (ID_AZI,CODAGE,DATDOC,NUMDOC,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APROA1_01 (ID_AZI,TIPINV,CODAGE,DATDOC,NUMDOC,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.APROA1_01 (ID_AZI,CODAGE,TIPINV,DATDOC,NUMDOC,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APROA2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APROA2_01 (ID_AZI,CODAGE,DATDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APROA2_01 (ID_AZI,DATSTO,CODAGE,DATDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.APROA2_01 (ID_AZI,DATRIA,CODAGE,DATDOC,NUMDOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APROAG_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APROAG_01 (ID_AZI,CODAGE,DATDOC,NUMDOC,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APROAG_01 (ID_AZI,CODAGE,DATPAG,NUMDOC,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APROD1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APROD1_01 (ID_AZI,NUMPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APROD1_01 (ID_AZI,CODART,ANNATA,ZEROES,DTAPRO,NUMPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.APROD1_01 (ID_AZI,DTAPRO,CODART,ANNATA,ZEROES,NUMPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.APROD1_01 (ID_AZI,FLAGOP,DTAPRO,NUMPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY05 ON dbo.APROD1_01 (ID_AZI,NUMMMG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY06 ON dbo.APROD1_01 (ID_AZI,LOTTON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APROD3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APROD3_01 (ID_AZI,NUMPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APROD3_01 (ID_AZI,DTAPRO,CODLIN,PROGRE,INISTI,NUMPRO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APROD4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APROD4_01 (ID_AZI,NUMPRO,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APRONC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APRONC_01 (ID_AZI,CODNOM,GRAFIN,GRAINI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APVDAC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APVDAC_01 (ID_AZI,ID_VEN,TIPREC,NUMATT,CODATT,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APVDAS_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APVDAS_01 (ID_AZI,ID_VEN,TIPREC,NUMATT,CODATT,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APVDAV_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APVDAV_01 (ID_AZI,ID_VEN,TIPREC,NUMATT,CODATT,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APVDDV_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APVDDV_01 (ID_AZI,ID_VEN,TIPREC,NUMVAL,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APVEN1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APVEN1_01 (ID_AZI,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.APVEN1_01 (ID_AZI,DTABOL,NUMBOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella APVENZ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.APVENZ_01 (ID_AZI,NUMBOL,NUMRIG,NUMCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARAG09_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARAG09_01 (ID_AZI,CODRAG,CODAGE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARAG09_01 (ID_AZI,CODAGE,CODRAG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARCA09_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARCA09_01 (ID_AZI,CODCAR,CODAGE,CODRAG,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARCA09_01 (ID_AZI,CODAGE,CODCAR,CODRAG,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ARCA09_01 (ID_AZI,CODRAG,CODCAR,CODAGE,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.ARCA09_01 (ID_AZI,CODCAR,CODRAG,CODAGE,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREDD1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREDD1_01 (ID_AZI,ANNOSO,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREDD2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREDD2_01 (ID_AZI,CODCLI,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREDD3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREDD3_01 (ID_AZI,CODCLI,NUMERO,CODART,ANNATA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREDD4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREDD4_01 (ID_AZI,CODCLI,NUMERO,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREDD6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREDD6_01 (ID_AZI,CODCLI,NUMERO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREGC2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREGC2_01 (ID_AZI,NUMREG,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREGC3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREGC3_01 (ID_AZI,NUMERO,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AREGC3_01 (ID_AZI,TIPCOD,CODGRU,CODCON,CODSOT,ANNPAR,NUMPAR,DATREG,NUMERO,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AREGC3_01 (ID_AZI,TIPCOD,CODGRU,CODCON,CODSOT,ANNPAR,NUMPAR,DATSCA,TIPSCA,NUMERO,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREGC4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREGC4_01 (ID_AZI,NUMERO,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AREGC4_01 (ID_AZI,DATSCA,NUMERO,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AREGC4_01 (ID_AZI,TIPCOD,CODGRU,CODCON,CODSOT,DATSCA,NUMERO,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.AREGC4_01 (ID_AZI,NUMDIS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREGC6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREGC6_01 (ID_AZI,NUMREG,NUMRIG,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREGCC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREGCC_01 (ID_AZI,NUMREG,NUMRIG,CENCOS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREGCF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREGCF_01 (ID_AZI,NUMREG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AREGCF_01 (ID_AZI,CODSOC,NUMREG,DATREG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AREGCF_01 (ID_AZI,CODSOC,CODPRA,NUMREG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AREGCO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AREGCO_01 (ID_AZI,NUMREG,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AREGCO_01 (ID_AZI,GRURIG,CONRIG,SOTRIG,DATCOM,NUMREG,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.AREGCO_01 (ID_AZI,DATREG,NUMREG,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU002_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU002_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU003_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU003_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU004_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU004_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU005_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU005_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU006_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU006_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU007_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU007_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU008_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU008_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU009_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU009_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU010_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU010_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU011_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU011_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU012_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU012_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU014_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU014_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU015_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU015_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU016_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU016_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU017_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU017_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU018_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU018_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU019_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU019_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARU020_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARU020_01 (CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUCRU_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUCRU_01 (ID_AZI,ID_VEN,CODRAG,CODUVA,CODSCE,CODLIN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUCRU_01 (ID_AZI,ID_VEN,CODUVA,CODSCE,CODLIN,CODRAG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUFA1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUFA1_01 (ID_AZI,IDFAMI,CODMEN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUFAM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUFAM_01 (ID_AZI,IDFAMI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUFAM_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ARUFAM_01 (ID_AZI,DESCRI,IDFAMI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUFPT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUFPT_01 (ID_AZI,IDFAMI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUFPT_01 (ID_AZI,IDPROD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUMAA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUMAA_01 (ID_AZI,CODREG,CODMAG,CODART,ANNATA,NLOTTO,IDFAMI)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUMAG_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUMAG_01 (ID_AZI,CODREG,CODMAG,CODART,ANNATA,NLOTTO,IDFAMI,IDPROD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUMAP_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUMAP_01 (ID_AZI,CODREG,IDFAMI,ANNATA,IDPROD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUMMV_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUMMV_01 (ID_AZI,CODRAG,DATLIM,GRAMAS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUMMV_01 (ID_AZI,DATLIM,CODRAG,GRAMAS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUMR1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUMR1_01 (ID_AZI,IDSTES,PROTES,PRORIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUMR1_01 (ID_AZI,CODREG,IDPROD,DATMOV,INDORD,IDSTES,PROTES,PRORIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ARUMR1_01 (ID_AZI,CODREG,DATMOV,IDSTES,PROTES,PRORIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.ARUMR1_01 (ID_AZI,IDPROD,DATMOV,IDSTES,PROTES,PRORIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUMR2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUMR2_01 (ID_AZI,IDSTES,PROTES,PRORIG,CODVAS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUMR2_01 (ID_AZI,CODVAS,IDSTES,PROTES,PRORIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUMR3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUMR3_01 (ID_AZI,IDSTES,PROTES,PRORIG,PROTIP)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUMR3_01 (ID_AZI,IDSTES,PROTES,PRORIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ARUMR3_01 (ID_AZI,CONSER,CONINI,IDSTES,PROTES,PRORIG,PROTIP)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.ARUMR3_01 (ID_AZI,LOTTOS,IDSTES,PROTES,PRORIG,PROTIP)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUMT1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUMT1_01 (ID_AZI,IDSTES,PROTES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUMT1_01 (ID_AZI,DATMOV,IDSTES,PROTES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ARUMT1_01 (ID_AZI,CODREG,DATMOV,IDSTES,PROTES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR1_01 (ID_AZI,IDPROD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUPR1_01 (ID_AZI,IDFAMI,ANNATA,IDPROD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR2_01 (ID_AZI,IDPROD,CODISO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR3_01 (ID_AZI,IDPROD,CODVAR)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR4_01 (ID_AZI,IDPROD,CODMAN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR6_01 (ID_AZI,CODART,ANNATA,LOTTOS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUPR6_01 (ID_AZI,IDPROD,CODART,ANNATA,LOTTOS)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR7_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR7_01 (ID_AZI,CODART,ANNATA,IDPROD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUPR8_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUPR8_01 (ID_AZI,CODREG,IDPROD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUPR8_01 (ID_AZI,CODPRI,CODSEC,CODREG,IDPROD)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARURAG_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARURAG_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARURAG_01 (ID_AZI,IDFUVE,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUREG_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUREG_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ARUREG_01 (ID_AZI,DESCRI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUUVE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUUVE_01 (ID_AZI,CODREG,DTACAR,CODESO,NUMCON,CODRAG,TIPCOM,CODCOM,FLGMEC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ARUUVL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ARUUVL_01 (ID_AZI,PRGMSG,DTAMSG,ORAMSG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASALDM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASALDM_01 (ID_AZI,CODMAG,CODART,ANNATA,NLOTTO)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASCPV1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASCPV1_01 (ID_AZI,CODPVN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASCPV2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASCPV2_01 (ID_AZI,CODMAG,CODPVN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCDE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCDE_01 (ID_AZI,ID_VEN,CODSOC,CODDEL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ASOCDE_01 (ID_AZI,ID_VEN,CODDEL,CODSOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ASOCDE_01 (ID_AZI,ID_VEN,RAGSOC,CODDEL,CODSOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCI1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCI1_01 (ID_AZI,ID_VEN,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ASOCI1_01 (ID_AZI,ID_VEN,RAGSOC,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY03 ON dbo.ASOCI1_01 (ID_AZI,ID_VEN,CODSTB,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY04 ON dbo.ASOCI1_01 (ID_AZI,ID_VEN,PARIVA,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCI3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCI3_01 (ID_AZI,ID_VEN,CODICE,NUMRIG)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCI4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCI4_01 (ID_AZI,ID_VEN,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCIA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCIA_01 (ID_AZI,ID_VEN,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCIB_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCIB_01 (ID_AZI,ID_VEN,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCIC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCIC_01 (ID_AZI,ID_VEN,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCID_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCID_01 (ID_AZI,ID_VEN,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCIE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCIE_01 (ID_AZI,ID_VEN,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCIF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCIF_01 (ID_AZI,ID_VEN,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCIG_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCIG_01 (ID_AZI,ID_VEN,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCIH_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCIH_01 (ID_AZI,ID_VEN,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCII_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCII_01 (ID_AZI,ID_VEN,CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCIZ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCIZ_01 (ID_AZI,ID_VEN,CODICE,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ASOCIZ_01 (ID_AZI,ID_VEN,MARCAA,MODELA,CODICE,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCNI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCNI_01 (ID_AZI,CODSOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ASOCNI_01 (ID_AZI,DATOPE,CODSOC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOCS2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOCS2_01 (ID_AZI,ID_VEN,CODSCT,CODCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ASOCS2_01 (ID_AZI,ID_VEN,CODCOM,CODSCT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASOGDA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASOGDA_01 (ID_AZI,CODCLI,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASPCAA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASPCAA_01 (ID_AZI,CODSOC,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ASPCAA_01 (ID_AZI,CODCAA,CODSOC,PROGRE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASTAAG_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASTAAG_01 (ID_AZI,CODAGE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ASTAAG_01 (ID_AZI,CODSTA,CODAGE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASTABA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASTABA_01 (ID_AZI,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ASTABA_01 (ID_AZI,CODSTA,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASTACD_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASTACD_01 (ID_AZI,CODCLI,CODDES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ASTACD_01 (ID_AZI,CODCLI,CODDES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ASUPPA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ASUPPA_01 (ID_AZI,ID_VEN,CODCOM,SEZION,FOGLIO,PARTIC,SUBPAR)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAA1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAA1_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAA1_01 (ID_AZI,TIPREC,DESZON,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAAC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAAC_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAAC_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAAG_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAAG_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAAG_01 (ID_AZI,TIPREC,RAGSOC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAAI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAAI_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAAI_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAAL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAAL_01 (ID_AZI,CODALV)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAAL_01 (ID_AZI,CODMAG,CODALV)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAAM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAAM_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAAM_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAAN_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAAN_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAAN_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAAT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAAT_01 (ID_AZI,CODTRA,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAAT_01 (ID_AZI,RAGSOC,CODTRA,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBACF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBACF_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBACF_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBACL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBACL_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBACL_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBACM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBACM_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBACM_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBACZ_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBACZ_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBACZ_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBADF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBADF_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBADF_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAFM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAFM_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAFM_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAGR_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAGR_01 (ID_AZI,TIPREC,CODICE,CODMAG,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAGR_01 (ID_AZI,TIPREC,DESCRI,CODICE,CODMAG,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAK1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAK1_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAK2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAK2_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAK3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAK3_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAK4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAK4_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAK5_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAK5_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAK6_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAK6_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAKK_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAKK_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAKK_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBALI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBALI_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBALI_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBALP_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBALP_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBALP_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAMA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAMA_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAMA_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAMP_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAMP_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAMP_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAPC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAPC_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAPC_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAPI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAPI_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAPI_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAPO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAPO_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAPO_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAPP_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAPP_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAPP_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAPV_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAPV_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAPV_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBASC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBASC_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBASC_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBASM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBASM_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBASM_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAT1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAT1_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAT2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAT2_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBATR_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBATR_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBATR_01 (ID_AZI,TIPREC,RAGSOC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAUM_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAUM_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAUM_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAVA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAVA_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAVA_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAVL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAVL_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAVL_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATBAZC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATBAZC_01 (ID_AZI,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATBAZC_01 (ID_AZI,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATDI12_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATDI12_01 (ID_AZI,ID_VEN,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATMABA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATMABA_01 (TIPREC,CODABI,CODCAB,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATMABA_01 (TIPREC,DES001,CODABI,CODCAB,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATMACO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATMACO_01 (TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATMACO_01 (TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATMANA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATMANA_01 (TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATMANA_01 (TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATMAPR_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATMAPR_01 (TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATMAPR_01 (TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATMARE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATMARE_01 (TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATMARE_01 (TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATSOL1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATSOL1_01 (ID_AZI,TIPSOL,CODICE,CODLIN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATSOL1_01 (ID_AZI,TIPSOL,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATSOLL_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATSOLL_01 (ID_AZI,TIPSOL,CODICE,CODLIN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATSOLL_01 (ID_AZI,TIPSOL,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATUVE1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATUVE1_01 (ID_AZI,ID_VEN,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATUVE1_01 (ID_AZI,ID_VEN,DESCRI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATVEAT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATVEAT_01 (ID_AZI,ID_VEN,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATVEAT_01 (ID_AZI,ID_VEN,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATVELO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATVELO_01 (ID_AZI,ID_VEN,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATVELO_01 (ID_AZI,ID_VEN,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATVEPO_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATVEPO_01 (ID_AZI,ID_VEN,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATVEPO_01 (ID_AZI,ID_VEN,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATVETA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATVETA_01 (ID_AZI,ID_VEN,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATVETA_01 (ID_AZI,ID_VEN,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATVETD_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATVETD_01 (ID_AZI,ID_VEN,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATVETD_01 (ID_AZI,ID_VEN,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATVEVT_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATVEVT_01 (ID_AZI,ID_VEN,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATVEVT_01 (ID_AZI,ID_VEN,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ATVEZC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ATVEZC_01 (ID_AZI,ID_VEN,TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.ATVEZC_01 (ID_AZI,ID_VEN,TIPREC,DESCRI,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AULPNC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AULPNC_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AULPNF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AULPNF_01 (ID_AZI,CODICE)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AUVERE_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AUVERE_01 (ID_AZI,ID_VEN,CODUVA,DATINI,DATFIN)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AUVRIV_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AUVRIV_01 (ID_AZI,ID_VEN,CODUVA,CODRIV)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AUVRIV_01 (ID_AZI,ID_VEN,CODRIV,CODUVA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AV9TRA_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AV9TRA_01 (ID_AZI,ID_VEN,CODTRA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AVALRF_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AVALRF_01 (ID_AZI,NUMERO,NUMRIG,NUMCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AVALRP_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AVALRP_01 (ID_AZI,NUMERO,NUMRIG,NUMCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AVEPC1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AVEPC1_01 (ID_AZI,DESCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AVEPC1_01 (ID_AZI,CODCOM,DESCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AVEPC2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AVEPC2_01 (ID_AZI,DESUVA,TIPUVA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AVEPC2_01 (ID_AZI,CODUVA,DESUVA,TIPUVA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AVEPC3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AVEPC3_01 (ID_AZI,NUMATT,DESATT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AVEPC3_01 (ID_AZI,NUMATT,CODATT,DESATT)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AVEPC4_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AVEPC4_01 (ID_AZI,CODCUA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AVEPC4_01 (ID_AZI,CODSOC,CODCUA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AVSO72_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AVSO72_01 (ID_AZI,CODART,CODCOL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AVSO72_01 (ID_AZI,CODCOL,CODART)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AVUOTI_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AVUOTI_01 (ID_AZI,NUMERO,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AVUOTI_01 (ID_AZI,FLGCFS,CODICE,CODVUO,DTAMOV,NUMFAT,NUMERO,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AZONE1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AZONE1_01 (ID_AZI,ID_VEN,CODZON,CODCOM,FOGLIO,PARTIC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella AZONEC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.AZONEC_01 (ID_AZI,ID_VEN,CODZON,CODCOM)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
BEGIN TRY
CREATE INDEX KEY02 ON dbo.AZONEC_01 (ID_AZI,ID_VEN,CODCOM,CODZON)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella XAZIE1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.XAZIE1_01 (CODICE,TIPREC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ZFILE1_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ZFILE1_01 (CODFIL)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ZFILE2_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ZFILE2_01 (CODFIL,CODTRC)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ZFILE3_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ZFILE3_01 (CODFIL,CODTRC,NUMRGA)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione dump: creazione br-indici tabella ZTBLFC_01', GetDate())
BEGIN TRY
CREATE UNIQUE INDEX KEY01 ON dbo.ZTBLFC_01 (TIPREC,CODICE,ZEROES)
END TRY
BEGIN CATCH
INSERT INTO dbo._cdm_ SELECT ERROR_MESSAGE(), GETDATE()
END CATCH;
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione script ../sql/av2000_alyante_set_env.sql', GetDate())
--- definisce il database corrente
use AV2000_ALYANTE;
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Esecuzione script ../sql/av2000_alyante_end.sql', GetDate())
DECLARE @TIPO_DOCUMENTO_PRIVATI int;
SET @TIPO_DOCUMENTO_PRIVATI = 6;       --- Tipo documento associato alla causale fatture fittizia privati ---
 
--- DECLARE @ESERCIZI_ANALISI int;
--- SET @ESERCIZI_ANALISI = 8;          --- numero di esercizi gestiti (compreso quello in corso) ---
 
-----------------------------
--- PULIZIA ESERCIZI VECCHI
-----------------------------
 
--- sega gli anni vecchi su base contabile ---
--- SET @DATA_INIZIALE = DATE_ADD(CONCAT((YEAR(NOW()) - @ESERCIZI_ANALISI), "-", @MESE_CHIUSURA_ESERCIZIO, "-", "01"), INTERVAL 1 MONTH);
 
--- sega gli anni vecchi su base solare
--- DECLARE @DATA_INIZIALE date;
--- SET @DATA_INIZIALE = CONCAT((YEAR(GetDate()) - @ESERCIZI_ANALISI), '-', '01' , '-', '01');
--- INSERT INTO _cdm_ VALUES (CONCAT('Sega documenti antecedenti ', @DATA_INIZIALE), GetDate());
 
--- Fatture
 
INSERT INTO _cdm_ VALUES ('Elimina fatture non stampate', GetDate());
 
DELETE AVALRF_01
FROM AVALRF_01
LEFT JOIN AFATTZ_01 ON AVALRF_01.ID_AZI = AFATTZ_01.ID_AZI AND AVALRF_01.NUMERO = AFATTZ_01.NUMFAT AND AVALRF_01.NUMRIG = AFATTZ_01.NUMRIG AND AVALRF_01.NUMCOM = AFATTZ_01.NUMCOM
LEFT JOIN AFATT1_01 ON AFATTZ_01.ID_AZI = AFATT1_01.ID_AZI AND AFATTZ_01.NUMFAT = AFATT1_01.NUMFAT
WHERE AFATT1_01.AA_IVA = 0;
 
DELETE AFATT1_01
FROM AFATT1_01
WHERE AFATT1_01.AA_IVA = 0;
 
INSERT INTO _cdm_ VALUES ('Elimina fatture proforma', GetDate());
 
DELETE AVALRF_01
FROM AVALRF_01
LEFT JOIN AFATTZ_01 ON AVALRF_01.ID_AZI = AFATTZ_01.ID_AZI AND AVALRF_01.NUMERO = AFATTZ_01.NUMFAT AND AVALRF_01.NUMRIG = AFATTZ_01.NUMRIG AND AVALRF_01.NUMCOM = AFATTZ_01.NUMCOM
LEFT JOIN AFATT1_01 ON AFATTZ_01.ID_AZI = AFATT1_01.ID_AZI AND AFATTZ_01.NUMFAT = AFATT1_01.NUMFAT
LEFT JOIN ATBACF_01 ON ATBACF_01.ID_AZI = AFATT1_01.ID_AZI AND ATBACF_01.CODICE = AFATT1_01.CAUFAT
WHERE ATBACF_01.TIPFAT = '5';
 
DELETE AFATTZ_01
FROM AFATTZ_01
LEFT JOIN AFATT1_01 ON AFATTZ_01.ID_AZI = AFATT1_01.ID_AZI AND AFATTZ_01.NUMFAT = AFATT1_01.NUMFAT
LEFT JOIN ATBACF_01 ON ATBACF_01.ID_AZI = AFATT1_01.ID_AZI AND ATBACF_01.CODICE = AFATT1_01.CAUFAT
WHERE ATBACF_01.TIPFAT = '5';
 
DELETE AFATT1_01
FROM AFATT1_01
LEFT JOIN ATBACF_01 ON ATBACF_01.ID_AZI = AFATT1_01.ID_AZI AND ATBACF_01.CODICE = AFATT1_01.CAUFAT
WHERE ATBACF_01.TIPFAT = '5';
 
/*Agente statistico*/
/*alter table AFATT1_01
add column COD_AGENTE_STATISTICO char(7);
 
update AFATT1_01 , ASTAAG_01 set COD_AGENTE_STATISTICO = if(ASTAAG_01.ASTAAG_CODAGE is null ,AFATT1_FK1_ATBAAG, concat(AFATT1_01.AFATT1_ID_AZI,right (concat("00000",ASTAAG_01.ASTAAG_CODSTA),5)))
where AFATT1_01.AFATT1_FK1_ATBAAG = ASTAAG_01.ASTAAG_ID;
update AFATT1_01 set COD_AGENTE_STATISTICO = AFATT1_FK1_ATBAAG where COD_AGENTE_STATISTICO is null;*/
 
/* Punto vendita */
 
/*INSERT INTO _cdm_ VALUES ('Elimina vecchie bollette punto vendita', GetDate());
 
DELETE APVEN1_01, AVALRP_01, APVENZ_01
FROM APVEN1_01
LEFT JOIN APVENZ_01 ON APVENZ_FK1_APVEN1 = APVEN1_ID
LEFT JOIN AVALRP_01 ON AVALRP_FK1_APVENZ = APVENZ_ID
WHERE APVEN1_DTABOL < @DATA_INIZIALE;*/
 
/***********************************************
  CLIENTI
|***********************************************/
 
/* INSERT INTO _cdm_ VALUES ('Elimina clienti senza fatture', GetDate()); */
 
/* DELETE CLI FROM AANCL1_01 CLI */
/* LEFT JOIN AFATT1_01 TF ON TF.ID_AZI = CLI.ID_AZI AND TF.CODCLI = CLI.CODICE */
/* WHERE TF.CODCLI IS NULL; */
/* go */
 
INSERT INTO _cdm_ VALUES ('Elimina destinatari di clienti inesistenti', GetDate());
 
DELETE DES FROM AANCLF_01 DES
LEFT JOIN AANCL1_01 CLI ON CLI.ID_AZI = DES.ID_AZI AND CLI.CODICE = DES.CODCLI
WHERE CLI.CODICE IS NULL;
go
 
/*Clienti Statistici*/
 
/*alter table AFATT1_01
add column COD_CLIENTE_STATISTICO char(8);
 
update AFATT1_01 , ASTACD_01 set COD_CLIENTE_STATISTICO = if(ASTACD_01.ASTACD_CODCLI is null ,AFATT1_FK1_AANCL1, concat(AFATT1_01.AFATT1_ID_AZI,ASTACD_01.ASTACD_STACLI))
where AFATT1_01.AFATT1_FK1_AANCL1 = ASTACD_01.ASTACD_CODCLI;
update AFATT1_01 set COD_CLIENTE_STATISTICO = AFATT1_FK1_AANCL1 where COD_CLIENTE_STATISTICO is null;
 
INSERT INTO _cdm_ VALUES ('Aggiunte alla tabella clienti', GetDate());
go*/
 
-------------------------------------------------
---  ARTICOLI
-------------------------------------------------
 
/*
INSERT INTO _cdm_ VALUES ('Elimina articoli senza fatture ne bollette', GetDate());
 
DELETE AARTI1_01 FROM AARTI1_01
LEFT JOIN AFATTZ_01 ON AFATTZ_01.ID_AZI = AARTI1_01.ID_AZI AND AFATTZ_01.CODART = AARTI1_01.CODICE
LEFT JOIN APVENZ_01 ON APVENZ_01.ID_AZI = AARTI1_01.ID_AZI AND APVENZ_01.CODART = AARTI1_01.CODICE
WHERE AFATTZ_01.CODART IS NULL AND APVENZ_01.CODART IS NULL;
go*/
 
/*Articoli statistici*/
 
/*alter table AFATTZ_01
add column COD_ARTICOLO_STATISTICO char(17);
 
update AFATTZ_01 , ASTABA_01 set COD_ARTICOLO_STATISTICO = if(ASTABA_01.ASTABA_CODART is null ,AFATTZ_FK1_AARTI1, concat(AFATTZ_01.AFATTZ_ID_AZI, right(concat('__________',ASTABA_01.ASTABA_CODSTA),15)))
where AFATTZ_01.AFATTZ_FK1_AARTI1 = ASTABA_01.ASTABA_ID;
 
update AFATTZ_01 set COD_ARTICOLO_STATISTICO = AFATTZ_FK1_AARTI1 where COD_ARTICOLO_STATISTICO is null;
 
go*/
 
/* articoli movimentati */
INSERT INTO _cdm_ VALUES ('Costruzione tabella ARTICOLI_MOVIMENTATI', GetDate());
 
if exists(select table_name from av2000_alyante.information_schema.tables where table_name = 'ARTICOLI_MOVIMENTATI') drop table dbo.ARTICOLI_MOVIMENTATI
select A.ID_AZI, A.CODICE
into dbo.ARTICOLI_MOVIMENTATI from AARTI1_01 A
where A.CODICE in (select CODART from AMMAG1_01 M where M.ID_AZI = A.ID_AZI)
or A.CODICE in (select CODART from ASALDM_01 S where S.ID_AZI = A.ID_AZI)
or A.CODICE in (select CODART from AFATTZ_01 S where S.ID_AZI = A.ID_AZI)
or A.CODICE in (select CODART from ABOLLZ_01 S where S.ID_AZI = A.ID_AZI)
or A.CODICE in (select CODART from AORDIZ_01 S where S.ID_AZI = A.ID_AZI)
go
 
-------------------------------------------------
---  FATTURE
-------------------------------------------------
 
/* Elimina righe vuoti da fatture e punto vendita */
INSERT INTO _cdm_ VALUES ('Elimina righe vuoti', GetDate());
 
DELETE FROM AFATTZ_01 WHERE AFATTZ_01.TIPRIG = 'V';
DELETE FROM APVENZ_01 WHERE APVENZ_01.TIPRIG = 'V';
go
 
----------------------------------------------------
--- FLAGS CLIENTI
----------------------------------------------------
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Generazione tabella FLAGS_CLIENTI', GetDate());
go
 
IF EXISTS(SELECT TABLE_NAME FROM AV2000_ALYANTE.INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'FLAGS_CLIENTI') DROP TABLE dbo.FLAGS_CLIENTI;
GO
 
SELECT C.ID_AZI, C.CODICE CODCLI
,(SELECT IIF(F.CODECC IS NULL, P.FATRIE, IIF(P.FATRIE = 'S', 'N', 'S')) FATRIE FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 1 WHERE P.ID_AZI = C.ID_AZI) FATRIE
,(SELECT IIF(F.CODECC IS NULL, P.STAAGE, IIF(P.STAAGE = 'S', 'N', 'S')) STAAGE FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 2 WHERE P.ID_AZI = C.ID_AZI) STAAGE
,(SELECT IIF(F.CODECC IS NULL, P.SPEINC, IIF(P.SPEINC = 'S', 'N', 'S')) SPEINC FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 3 WHERE P.ID_AZI = C.ID_AZI) SPEINC
,(SELECT IIF(F.CODECC IS NULL, P.INVSOL, IIF(P.INVSOL = 'S', 'N', 'S')) INVSOL FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 4 WHERE P.ID_AZI = C.ID_AZI) INVSOL
,(SELECT IIF(F.CODECC IS NULL, P.SOGCAU, IIF(P.SOGCAU = 'S', 'N', 'S')) SOGCAU FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 5 WHERE P.ID_AZI = C.ID_AZI) SOGCAU
,(SELECT IIF(F.CODECC IS NULL, P.RIFORD, IIF(P.RIFORD = 'S', 'N', 'S')) RIFORD FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 6 WHERE P.ID_AZI = C.ID_AZI) RIFORD
,(SELECT IIF(F.CODECC IS NULL, P.BLOFAT, IIF(P.BLOFAT = 'S', 'N', 'S')) BLOFAT FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 7 WHERE P.ID_AZI = C.ID_AZI) BLOFAT
,(SELECT IIF(F.CODECC IS NULL, P.STAALL, IIF(P.STAALL = 'S', 'N', 'S')) STAALL FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 8 WHERE P.ID_AZI = C.ID_AZI) STAALL
,(SELECT IIF(F.CODECC IS NULL, P.LISPVE, IIF(P.LISPVE = 'S', 'N', 'S')) LISPVE FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 9 WHERE P.ID_AZI = C.ID_AZI) LISPVE
,(SELECT IIF(F.CODECC IS NULL, P.DESFAT, IIF(P.DESFAT = 'S', 'N', 'S')) DESFAT FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 10	WHERE P.ID_AZI = C.ID_AZI) DESFAT
,(SELECT IIF(F.CODECC IS NULL, P.PRZBOL, IIF(P.PRZBOL = 'S', 'N', 'S')) PRZBOL FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 11	WHERE P.ID_AZI = C.ID_AZI) PRZBOL
,(SELECT IIF(F.CODECC IS NULL, P.DESISF, IIF(P.DESISF = 'S', 'N', 'S')) DESISF FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 12	WHERE P.ID_AZI = C.ID_AZI) DESISF
,(SELECT IIF(F.CODECC IS NULL, P.FATMEN, IIF(P.FATMEN = 'S', 'N', 'S')) FATMEN FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 13	WHERE P.ID_AZI = C.ID_AZI) FATMEN
,(SELECT IIF(F.CODECC IS NULL, P.BOLCAU, IIF(P.BOLCAU = 'S', 'N', 'S')) BOLCAU FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 14	WHERE P.ID_AZI = C.ID_AZI) BOLCAU
,(SELECT IIF(F.CODECC IS NULL, P.SOGVUO, IIF(P.SOGVUO = 'S', 'N', 'S')) SOGVUO FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 15	WHERE P.ID_AZI = C.ID_AZI) SOGVUO
,(SELECT IIF(F.CODECC IS NULL, P.BLOCOB, IIF(P.BLOCOB = 'S', 'N', 'S')) BLOCOB FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 16	WHERE P.ID_AZI = C.ID_AZI) BLOCOB
,(SELECT IIF(F.CODECC IS NULL, P.STALOT, IIF(P.STALOT = 'S', 'N', 'S')) STALOT FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 17	WHERE P.ID_AZI = C.ID_AZI) STALOT
,(SELECT IIF(F.CODECC IS NULL, P.LOTFAT, IIF(P.LOTFAT = 'S', 'N', 'S')) LOTFAT FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 18	WHERE P.ID_AZI = C.ID_AZI) LOTFAT
,(SELECT IIF(F.CODECC IS NULL, P.STAEAB, IIF(P.STAEAB = 'S', 'N', 'S')) STAEAB FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 19	WHERE P.ID_AZI = C.ID_AZI) STAEAB
,(SELECT IIF(F.CODECC IS NULL, P.STAEAC, IIF(P.STAEAC = 'S', 'N', 'S')) STAEAC FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 20	WHERE P.ID_AZI = C.ID_AZI) STAEAC
,(SELECT IIF(F.CODECC IS NULL, P.RFCFAT, IIF(P.RFCFAT = 'S', 'N', 'S')) RFCFAT FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 21	WHERE P.ID_AZI = C.ID_AZI) RFCFAT
,(SELECT IIF(F.CODECC IS NULL, P.[2BOLLE], IIF(P.[2BOLLE] = 'S', 'N', 'S')) [2BOLLE ] FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 22 WHERE P.ID_AZI = C.ID_AZI) [2BOLLE]
,(SELECT IIF(F.CODECC IS NULL, P.STNCFA, IIF(P.STNCFA = 'S', 'N', 'S')) STNCFA FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 23	WHERE P.ID_AZI = C.ID_AZI) STNCFA
,(SELECT IIF(F.CODECC IS NULL, P.LUCISF, IIF(P.LUCISF = 'S', 'N', 'S')) LUCISF FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 24	WHERE P.ID_AZI = C.ID_AZI) LUCISF
,(SELECT IIF(F.CODECC IS NULL, P.CSAISD, IIF(P.CSAISD = 'S', 'N', 'S')) CSAISD FROM APAZDC_01 P LEFT JOIN AANCL4_01 F ON F.ID_AZI = C.ID_AZI AND F.CODICE = C.CODICE AND F.CODECC = 25	WHERE P.ID_AZI = C.ID_AZI) CSAISD
INTO FLAGS_CLIENTI
FROM AANCL1_01 C
GO
 
-------------------------------------------------
---  PULIZIA TABELLA AZIENDE
-------------------------------------------------
 
/* Elimina aziende non esportate (non hanno nemmeno un cliente sul database) */
INSERT INTO _cdm_ VALUES ('Elimina aziende non interessanti', GetDate());
 
DELETE FROM XAZIE1_01 WHERE CODICE NOT IN (select DISTINCT ID_AZI from AANCL1_01 )
GO
---------------------------
--- fine
---------------------------
 
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Fine esecuzione alyante_end', GetDate());
go
INSERT INTO dbo._cdm_ (EVENTO, DATA_ORA) VALUES ('Fine elaborazione', GetDate())
go
