Description
Properties
| Name | Value |
|---|---|
| File Collation | |
| File Group | |
| Filestream File Group | |
| Is Partitioned | False |
| Partitioned Column | |
| Partition Scheme | |
| File Groups | |
| Filestream Partition Scheme | |
| Filestream File Groups | |
| Heap | True |
| Full Text Catalog | |
| Full Text | |
| Compression | NONE |
| Row Count (~) | 11235646 |
| Created | 12/17/2019 11:43:32 AM |
| Last Modified | 9/8/2023 9:29:13 AM |
Columns
33| Key | Name | Data Type | Length | Precision | Scale | Not Null | Identity | Rule | Default | Computed | Persisted | Description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id_trazabilidad | int | 4 | 10 | 0 | True |
1 - 1 | False |
False |
||||
| texto | varchar | 1000 | 0 | 0 | True |
False |
False |
|||||
| cliente | int | 4 | 10 | 0 | True |
False |
False |
|||||
| accion | varchar | 100 | 0 | 0 | True |
False |
False |
|||||
| id_plataforma | varchar | 10 | 0 | 0 | False |
False |
False |
|||||
| contraparte | int | 4 | 10 | 0 | False |
False |
False |
|||||
| user_id | int | 4 | 10 | 0 | False |
False |
False |
|||||
| created | datetime | 8 | 23 | 3 | False |
(getdate()) | False |
False |
||||
| fecha_old | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| valor_numerico_old | float | 8 | 53 | 0 | False |
False |
False |
|||||
| valor_texto_old | varchar | 100 | 0 | 0 | False |
False |
False |
|||||
| valor_memo_old | text | 0 | 0 | False |
False |
False |
||||||
| valor_fecha_old | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| fecha_new | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| valor_numerico_new | float | 8 | 53 | 0 | False |
False |
False |
|||||
| valor_texto_new | varchar | 100 | 0 | 0 | False |
False |
False |
|||||
| valor_memo_new | text | 0 | 0 | False |
False |
False |
||||||
| valor_fecha_new | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| detalle_killer_old | varchar | 0 | 0 | False |
False |
False |
||||||
| detalle_puntos_old | varchar | 0 | 0 | False |
False |
False |
||||||
| detalle_killer_new | varchar | 0 | 0 | False |
False |
False |
||||||
| detalle_puntos_new | varchar | 0 | 0 | False |
False |
False |
||||||
| doc_id | bigint | 8 | 19 | 0 | False |
False |
False |
|||||
| servicio_contratado | int | 4 | 10 | 0 | False |
False |
False |
|||||
| set_doc | int | 4 | 10 | 0 | False |
False |
False |
|||||
| familia | int | 4 | 10 | 0 | False |
False |
False |
|||||
| tipo_doc | int | 4 | 10 | 0 | False |
False |
False |
|||||
| idTipoInforme | int | 4 | 10 | 0 | False |
False |
False |
|||||
| idTarea | int | 4 | 10 | 0 | False |
False |
False |
|||||
| idComponente | int | 4 | 10 | 0 | False |
False |
False |
|||||
| tipo_accion | varchar | 1 | 0 | 0 | False |
False |
False |
|||||
| gestion | int | 4 | 10 | 0 | False |
False |
False |
|||||
| informe | int | 4 | 10 | 0 | False |
False |
False |
Indexes
5| Key | Name | Columns | Unique | Type | Description |
|---|---|---|---|---|---|
| idx_traz_acc | accion, contraparte, created | False |
|||
| idxReporteTareas | idTarea, created, tipo_accion | False |
|||
| idxTrazab | id_plataforma, contraparte | False |
|||
| idxTrazabilidad | cliente, servicio_contratado, created | False |
|||
| idxTrazabilidadCliente | cliente, created | False |
SQL Script
Copy
CREATE TABLE dbo.trazabilidad (
id_trazabilidad int IDENTITY,
texto varchar(1000) NOT NULL,
cliente int NOT NULL,
accion varchar(100) NOT NULL,
id_plataforma varchar(10) NULL,
contraparte int NULL,
user_id int NULL,
created datetime NULL CONSTRAINT DF_trazabilidad_created DEFAULT (getdate()),
fecha_old datetime NULL,
valor_numerico_old float NULL,
valor_texto_old varchar(100) NULL,
valor_memo_old text NULL,
valor_fecha_old datetime NULL,
fecha_new datetime NULL,
valor_numerico_new float NULL,
valor_texto_new varchar(100) NULL,
valor_memo_new text NULL,
valor_fecha_new datetime NULL,
detalle_killer_old varchar(max) NULL,
detalle_puntos_old varchar(max) NULL,
detalle_killer_new varchar(max) NULL,
detalle_puntos_new varchar(max) NULL,
doc_id bigint NULL,
servicio_contratado int NULL,
set_doc int NULL,
familia int NULL,
tipo_doc int NULL,
idTipoInforme int NULL,
idTarea int NULL,
idComponente int NULL,
tipo_accion varchar(1) NULL,
gestion int NULL,
informe int NULL
)
ON [PRIMARY]
TEXTIMAGE_ON [PRIMARY]
GO
CREATE INDEX idx_traz_acc
ON dbo.trazabilidad (accion, contraparte, created)
INCLUDE (user_id)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxReporteTareas
ON dbo.trazabilidad (idTarea, created, tipo_accion)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxTrazab
ON dbo.trazabilidad (id_plataforma, contraparte)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxTrazabilidad
ON dbo.trazabilidad (cliente, servicio_contratado, created)
INCLUDE (texto, id_plataforma, contraparte)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxTrazabilidadCliente
ON dbo.trazabilidad (cliente, created)
INCLUDE (texto, id_plataforma, contraparte)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
id_trazabilidad int IDENTITY,
texto varchar(1000) NOT NULL,
cliente int NOT NULL,
accion varchar(100) NOT NULL,
id_plataforma varchar(10) NULL,
contraparte int NULL,
user_id int NULL,
created datetime NULL CONSTRAINT DF_trazabilidad_created DEFAULT (getdate()),
fecha_old datetime NULL,
valor_numerico_old float NULL,
valor_texto_old varchar(100) NULL,
valor_memo_old text NULL,
valor_fecha_old datetime NULL,
fecha_new datetime NULL,
valor_numerico_new float NULL,
valor_texto_new varchar(100) NULL,
valor_memo_new text NULL,
valor_fecha_new datetime NULL,
detalle_killer_old varchar(max) NULL,
detalle_puntos_old varchar(max) NULL,
detalle_killer_new varchar(max) NULL,
detalle_puntos_new varchar(max) NULL,
doc_id bigint NULL,
servicio_contratado int NULL,
set_doc int NULL,
familia int NULL,
tipo_doc int NULL,
idTipoInforme int NULL,
idTarea int NULL,
idComponente int NULL,
tipo_accion varchar(1) NULL,
gestion int NULL,
informe int NULL
)
ON [PRIMARY]
TEXTIMAGE_ON [PRIMARY]
GO
CREATE INDEX idx_traz_acc
ON dbo.trazabilidad (accion, contraparte, created)
INCLUDE (user_id)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxReporteTareas
ON dbo.trazabilidad (idTarea, created, tipo_accion)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxTrazab
ON dbo.trazabilidad (id_plataforma, contraparte)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxTrazabilidad
ON dbo.trazabilidad (cliente, servicio_contratado, created)
INCLUDE (texto, id_plataforma, contraparte)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxTrazabilidadCliente
ON dbo.trazabilidad (cliente, created)
INCLUDE (texto, id_plataforma, contraparte)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
Depends On
1- Fidelitas
Used By
19- dbo.apikey_trazabilidad
- dbo.comprobar_trazabilidad
- dbo.LN_Blue
- dbo.LN_Blue_MIS
- dbo.LN_contrapartes_queue_
- dbo.LN_contrapartes_queue_07122022
- dbo.LN_contrapartes_queue_ID
- dbo.LN_contrapartes_queue_NEW_
- dbo.LN_panel_vrm_cambios
- dbo.LN_TATime_
- dbo.LN_trazabilidad_
- dbo.LN_trazabilidad_v2
- dbo.monitoreo_lista
- dbo.monitoreos_indicadores
- dbo.monitoreos_trazabilidad
- dbo.obtener_trazabilidad
- dbo.obtener_trazabilidad_coface
- dbo.trazabilidad_
- dbo.trazabilidad_configuracion