dbo.led_contratistas

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

False

Full Text Catalog
Full Text
Compression NONE
Row Count (~) 10442
Created 12/29/2015 4:57:46 PM
Last Modified 11/17/2023 3:28:13 AM

Columns

13
Key Name Data Type Length Precision Scale Not Null Identity Rule Default Computed Persisted Description
contratista int 4 10 0

True

1 - 1

False

False

cliente int 4 10 0

False

False

False

estado_contratista varchar 1 0 0

False

False

False

tipo_contratista int 4 10 0

False

False

False

id_padron int 4 10 0

False

False

False

user_id int 4 10 0

False

False

False

contratista_1 int 4 10 0

False

False

False

subcontratista_de int 4 10 0

False

False

False

created datetime 8 23 3

False

(getdate())

False

False

numeros_art varchar 200 0 0

False

False

False

telefonos varchar 100 0 0

False

False

False

codigo_interno varchar 30 0 0

False

False

False

notas text 0 0

False

False

False

Indexes

7
Key Name Columns Unique Type Description
_dta_index_led_contratistas_7_1200840186__K2_K3_K1_K5 cliente, estado_contratista, contratista, id_padron

False

idx_con_cli_con cliente, estado_contratista

False

idx_con_con1 contratista_1

False

idx_con_es_con1 estado_contratista, contratista_1

False

idxImperiumContratCli user_id, cliente

False

idxUniqueClientePadron cliente, id_padron, tipo_contratista, subcontratista_de

True

XPKled_contratistas contratista

True

Statistics

4
Name Columns
_dta_stat_1200840186_1_2_3 contratista, cliente, estado_contratista
_dta_stat_1200840186_1_5_2_3 contratista, id_padron, cliente, estado_contratista
_dta_stat_1200840186_3_1 estado_contratista, contratista
_dta_stat_1200840186_5_2_3 id_padron, cliente, estado_contratista

SQL Script

Copy
CREATE TABLE dbo.led_contratistas (
  contratista int IDENTITY,
  cliente int NULL,
  estado_contratista varchar(1) NULL,
  tipo_contratista int NULL,
  id_padron int NULL,
  user_id int NULL,
  contratista_1 int NULL,
  subcontratista_de int NULL,
  created datetime NULL DEFAULT (getdate()),
  numeros_art varchar(200) NULL,
  telefonos varchar(100) NULL,
  codigo_interno varchar(30) NULL,
  notas text NULL,
  CONSTRAINT XPKled_contratistas PRIMARY KEY CLUSTERED (contratista) WITH (FILLFACTOR = 90)
)
ON [PRIMARY]
TEXTIMAGE_ON [PRIMARY]
GO

CREATE INDEX _dta_index_led_contratistas_7_1200840186__K2_K3_K1_K5
  ON dbo.led_contratistas (cliente, estado_contratista, contratista, id_padron)
  WITH (FILLFACTOR = 80)
  ON [PRIMARY]
GO

CREATE INDEX idx_con_cli_con
  ON dbo.led_contratistas (cliente, estado_contratista)
  INCLUDE (contratista, contratista_1)
  WITH (FILLFACTOR = 80)
  ON [PRIMARY]
GO

CREATE INDEX idx_con_con1
  ON dbo.led_contratistas (contratista_1)
  WITH (FILLFACTOR = 80)
  ON [PRIMARY]
GO

CREATE INDEX idx_con_es_con1
  ON dbo.led_contratistas (estado_contratista, contratista_1)
  WITH (FILLFACTOR = 80)
  ON [PRIMARY]
GO

CREATE INDEX idxImperiumContratCli
  ON dbo.led_contratistas (user_id, cliente)
  WITH (FILLFACTOR = 80)
  ON [PRIMARY]
GO

CREATE UNIQUE INDEX idxUniqueClientePadron
  ON dbo.led_contratistas (cliente, id_padron, tipo_contratista, subcontratista_de)
  WITH (FILLFACTOR = 80)
  ON [PRIMARY]
GO

CREATE STATISTICS _dta_stat_1200840186_1_2_3
  ON dbo.led_contratistas (contratista, cliente, estado_contratista)
GO

CREATE STATISTICS _dta_stat_1200840186_1_5_2_3
  ON dbo.led_contratistas (contratista, id_padron, cliente, estado_contratista)
GO

CREATE STATISTICS _dta_stat_1200840186_3_1
  ON dbo.led_contratistas (estado_contratista, contratista)
GO

CREATE STATISTICS _dta_stat_1200840186_5_2_3
  ON dbo.led_contratistas (id_padron, cliente, estado_contratista)
GO

Depends On

1
  • Fidelitas

Used By

222