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 (~) | 4272246 |
| Created | 7/7/2016 6:47:11 PM |
| Last Modified | 6/22/2017 1:11:04 PM |
Columns
20| Key | Name | Data Type | Length | Precision | Scale | Not Null | Identity | Rule | Default | Computed | Persisted | Description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id_contador | int | 4 | 10 | 0 | True |
1 - 1 | False |
False |
||||
| cuit_cliente | varchar | 20 | 0 | 0 | False |
False |
False |
|||||
| id_cliente | int | 4 | 10 | 0 | False |
False |
False |
|||||
| suc_codigo | smallint | 2 | 5 | 0 | False |
False |
False |
|||||
| cuit_consultado | varchar | 20 | 0 | 0 | False |
False |
False |
|||||
| c01_codigo | int | 4 | 10 | 0 | False |
False |
False |
|||||
| fecha_consulta | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| tipo_consulta | varchar | 1 | 0 | 0 | False |
False |
False |
|||||
| cant_ver | smallint | 2 | 5 | 0 | False |
False |
False |
|||||
| cant_solicitar | smallint | 2 | 5 | 0 | False |
False |
False |
|||||
| user_consulta | varchar | 8 | 0 | 0 | False |
False |
False |
|||||
| hora_consulta | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| idifx | int | 4 | 10 | 0 | False |
False |
False |
|||||
| created_by | int | 4 | 10 | 0 | False |
False |
False |
|||||
| created | datetime | 8 | 23 | 3 | False |
(getdate()) | False |
False |
||||
| modified_by | int | 4 | 10 | 0 | False |
False |
False |
|||||
| modified | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| visible | bit | 1 | 1 | 0 | False |
(1) | False |
False |
||||
| id_padron_cliente | int | 4 | 10 | 0 | False |
False |
False |
|||||
| id_padron_consultado | int | 4 | 10 | 0 | False |
False |
False |
Indexes
1| Key | Name | Columns | Unique | Type | Description |
|---|---|---|---|---|---|
| idx_contador_consultas_cuit_consultado | cuit_consultado, visible, cuit_cliente, tipo_consulta, user_consulta | False |
SQL Script
Copy
CREATE TABLE dbo.contador_consultas (
id_contador int IDENTITY,
cuit_cliente varchar(20) NULL,
id_cliente int NULL,
suc_codigo smallint NULL,
cuit_consultado varchar(20) NULL,
c01_codigo int NULL,
fecha_consulta datetime NULL,
tipo_consulta varchar(1) NULL,
cant_ver smallint NULL,
cant_solicitar smallint NULL,
user_consulta varchar(8) NULL,
hora_consulta datetime NULL,
idifx int NULL,
created_by int NULL,
created datetime NULL DEFAULT (getdate()),
modified_by int NULL,
modified datetime NULL,
visible bit NULL DEFAULT (1),
id_padron_cliente int NULL,
id_padron_consultado int NULL
)
ON [PRIMARY]
GO
CREATE INDEX idx_contador_consultas_cuit_consultado
ON dbo.contador_consultas (cuit_consultado, visible, cuit_cliente, tipo_consulta, user_consulta)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
id_contador int IDENTITY,
cuit_cliente varchar(20) NULL,
id_cliente int NULL,
suc_codigo smallint NULL,
cuit_consultado varchar(20) NULL,
c01_codigo int NULL,
fecha_consulta datetime NULL,
tipo_consulta varchar(1) NULL,
cant_ver smallint NULL,
cant_solicitar smallint NULL,
user_consulta varchar(8) NULL,
hora_consulta datetime NULL,
idifx int NULL,
created_by int NULL,
created datetime NULL DEFAULT (getdate()),
modified_by int NULL,
modified datetime NULL,
visible bit NULL DEFAULT (1),
id_padron_cliente int NULL,
id_padron_consultado int NULL
)
ON [PRIMARY]
GO
CREATE INDEX idx_contador_consultas_cuit_consultado
ON dbo.contador_consultas (cuit_consultado, visible, cuit_cliente, tipo_consulta, user_consulta)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
Depends On
1- Fidelitas