CREATE TABLE [dbo].[simdistritos](
[pais_cod] [CHAR](4) NOT NULL,
[prov_cod] [CHAR](4) NOT NULL,
[dist_cod] [CHAR](4) NOT NULL,
[dist_nom] [CHAR](50) NOT NULL,
[sicpc] [CHAR](20) NOT NULL,
[sicfecha] [datetime] NOT NULL
CREATE TABLE [dbo].[vemsuscripcion](
[emp_cod] [CHAR](10) NOT NULL,
[sus_id] [INT] NOT NULL,
[sus_anio] [INT] NOT NULL,
[sus_mes] [INT] NOT NULL,
[suc_cod] [CHAR](10) NOT NULL,
[sus_camp] [INT] NOT NULL,
[sus_fch] [smalldatetime] NOT NULL,
[sus_flgnueren] [INT] NOT NULL,
[sus_ficha] [CHAR](10) NOT NULL,
[sus_codigo] [CHAR](19) NOT NULL,
[coa_id] [INT] NOT NULL,
[coa_tdoc] [CHAR](2) NOT NULL,
[coa_ndoc] [CHAR](11) NOT NULL,
[coa_razsoc] [CHAR](80) NOT NULL,
[pais_cod] [CHAR](4) NOT NULL,
[prov_cod] [CHAR](4) NOT NULL,
[dist_cod] [CHAR](4) NOT NULL,
[coa_direc] [CHAR](70) NOT NULL,
[coa_email] [CHAR](200) NOT NULL,
[sus_aten] [CHAR](80) NOT NULL,
[coa_obs_cli] [text] NOT NULL,
[pais_cod_ent] [CHAR](4) NOT NULL,
[prov_cod_ent] [CHAR](4) NOT NULL,
[dist_cod_ent] [CHAR](4) NOT NULL,
[coa_direc_ent] [CHAR](70) NOT NULL,
[coa_direcref_ent] [CHAR](70) NOT NULL,
[coa_telfijo_ent] [CHAR](50) NOT NULL,
[coa_telcelu_ent] [CHAR](50) NOT NULL,
[sus_contac_ent] [CHAR](80) NOT NULL,
[coa_obs_clilog] [text] NOT NULL,
[pais_cod_cob] [CHAR](4) NOT NULL,
[prov_cod_cob] [CHAR](4) NOT NULL,
[dist_cod_cob] [CHAR](4) NOT NULL,
[coa_direc_cob] [CHAR](70) NOT NULL,
[coa_direcref_cob] [CHAR](70) NOT NULL,
[coa_telfijo_cob] [CHAR](50) NOT NULL,
[coa_telcelu_cob] [CHAR](50) NOT NULL,
[sus_contac_cob] [CHAR](80) NOT NULL,
[coa_obs_clicob] [text] NOT NULL,
[coa_id_vend] [INT] NOT NULL,
[coa_tdoc_vend] [CHAR](2) NOT NULL,
[coa_ndoc_vend] [CHAR](11) NOT NULL,
[coa_razsoc_vend] [CHAR](80) NOT NULL,
[art_cod] [CHAR](20) NOT NULL,
[art_nom] [CHAR](90) NOT NULL,
[sus_cant] [INT] NOT NULL,
[sus_inirep] [smalldatetime] NOT NULL,
[sus_finrep] [smalldatetime] NOT NULL,
[sus_inibol] [smalldatetime] NOT NULL,
[sus_finbol] [smalldatetime] NOT NULL,
[sus_iniase] [smalldatetime] NOT NULL,
[sus_finase] [smalldatetime] NOT NULL,
[sus_iniweb] [smalldatetime] NOT NULL,
[sus_finweb] [smalldatetime] NOT NULL,
[sus_flgconcre] [INT] NOT NULL,
[sus_mon] [INT] NOT NULL,
[sus_tc] [NUMERIC](9, 3) NOT NULL,
[imp_pl_mn] [NUMERIC](9, 2) NOT NULL,
[imp_pv_mn] [NUMERIC](9, 2) NOT NULL,
[imp_ini_mn] [NUMERIC](9, 2) NOT NULL,
[imp_sld_mn] [NUMERIC](9, 2) NOT NULL,
[imp_pl_me] [NUMERIC](9, 2) NOT NULL,
[imp_pv_me] [NUMERIC](9, 2) NOT NULL,
[imp_ini_me] [NUMERIC](9, 2) NOT NULL,
[imp_sld_me] [NUMERIC](9, 2) NOT NULL,
[sus_flgttg] [INT] NOT NULL,
[sus_cuotas] [INT] NOT NULL,
[sus_flglet] [INT] NOT NULL,
[sus_cuo_01] [CHAR](10) NOT NULL,
[sus_fch_01] [smalldatetime] NOT NULL,
[sus_imp_01] [NUMERIC](9, 2) NOT NULL,
[sus_cuo_02] [CHAR](10) NOT NULL,
[sus_fch_02] [smalldatetime] NOT NULL,
[sus_imp_02] [NUMERIC](9, 2) NOT NULL,
[sus_cuo_03] [CHAR](10) NOT NULL,
[sus_fch_03] [smalldatetime] NOT NULL,
[sus_imp_03] [NUMERIC](9, 2) NOT NULL,
[sus_cuo_04] [CHAR](10) NOT NULL,
[sus_fch_04] [smalldatetime] NOT NULL,
[sus_imp_04] [NUMERIC](9, 2) NOT NULL,
[sus_cuo_05] [CHAR](10) NOT NULL,
[sus_fch_05] [smalldatetime] NOT NULL,
[sus_imp_05] [NUMERIC](9, 2) NOT NULL,
[sus_cuo_06] [CHAR](10) NOT NULL,
[sus_fch_06] [smalldatetime] NOT NULL,
[sus_imp_06] [NUMERIC](9, 2) NOT NULL,
[sus_cuo_07] [CHAR](10) NOT NULL,
[sus_fch_07] [smalldatetime] NOT NULL,
[sus_imp_07] [NUMERIC](9, 2) NOT NULL,
[sus_cuo_08] [CHAR](10) NOT NULL,
[sus_fch_08] [smalldatetime] NOT NULL,
[sus_imp_08] [NUMERIC](9, 2) NOT NULL,
[sus_cuo_09] [CHAR](10) NOT NULL,
[sus_fch_09] [smalldatetime] NOT NULL,
[sus_imp_09] [NUMERIC](9, 2) NOT NULL,
[sus_cuo_10] [CHAR](10) NOT NULL,
[sus_fch_10] [smalldatetime] NOT NULL,
[sus_imp_10] [NUMERIC](9, 2) NOT NULL,
[sus_flgretrep] [INT] NOT NULL,
[sus_flgretbol] [INT] NOT NULL,
[sus_flgretase] [INT] NOT NULL,
[sus_flgretweb] [INT] NOT NULL,
[sus_flggendocvta] [INT] NOT NULL,
[doc_tipo] [CHAR](2) NOT NULL,
[doc_serie] [CHAR](4) NOT NULL,
[doc_nro] [INT] NOT NULL,
[doc_est] [CHAR](1) NOT NULL,
[mov_id] [INT] NOT NULL,
[vou_serie] [CHAR](4) NOT NULL,
[vou_nro] [INT] NOT NULL,
[sus_flgrep] [INT] NOT NULL,
[sixpc] [CHAR](20) NOT NULL,
[sixfecha] [datetime] NOT NULL,
[sixusuario] [CHAR](10) NOT NULL,
[sus_flgorigen] [CHAR](4) NOT NULL,
[sus_flgorigen_id] [NUMERIC](10, 0) NOT NULL,
[sus_est] [CHAR](1) NOT NULL,
[sicpc] [CHAR](20) NOT NULL,
[sicfecha] [datetime] NOT NULL,
[sicusuario] [CHAR](10) NOT NULL,
[simpc] [CHAR](20) NULL,
[simfecha] [datetime] NULL,
[simusuario] [CHAR](10) NULL,
[sus_impcomicont_mn] [NUMERIC](9, 2) NOT NULL,
[sus_impcomici_mn] [NUMERIC](9, 2) NOT NULL,
[sus_codigoant] [CHAR](19) NOT NULL