dbo.LN_control_black_list

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 (~) 12618
Created 2/18/2019 12:27:03 PM
Last Modified 6/16/2022 5:47:21 PM

Columns

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

True

False

False

country_code varchar 2 0 0

True

False

False

identificacion varchar 30 0 0

True

False

False

visible bit 1 1 0

False

False

False

vigencia_desde datetime 8 23 3

False

False

False

inserted_by int 4 10 0

False

False

False

vigencia_hasta datetime 8 23 3

False

False

False

modified_by int 4 10 0

False

False

False

created datetime 8 23 3

False

(getdate())

False

False

modified datetime 8 23 3

False

False

False

Indexes

3
Key Name Columns Unique Type Description
idBlackList cliente, identificacion, visible

False

IDX_control_black_list cliente, country_code, identificacion, visible

False

idxControlBlackList cliente, country_code, visible

False

SQL Script

Copy
CREATE TABLE dbo.LN_control_black_list (
  cliente int NOT NULL,
  country_code varchar(2) NOT NULL,
  identificacion varchar(30) NOT NULL,
  visible bit NULL,
  vigencia_desde datetime NULL,
  inserted_by int NULL,
  vigencia_hasta datetime NULL,
  modified_by int NULL,
  created datetime NULL DEFAULT (getdate()),
  modified datetime NULL
)
ON [PRIMARY]
GO

CREATE INDEX idBlackList
  ON dbo.LN_control_black_list (cliente, identificacion, visible)
  WITH (FILLFACTOR = 80)
  ON [PRIMARY]
GO

CREATE INDEX IDX_control_black_list
  ON dbo.LN_control_black_list (cliente, country_code, identificacion, visible DESC)
  WITH (FILLFACTOR = 80)
  ON [PRIMARY]
GO

CREATE INDEX idxControlBlackList
  ON dbo.LN_control_black_list (cliente, country_code, visible)
  INCLUDE (identificacion)
  WITH (FILLFACTOR = 80)
  ON [PRIMARY]
GO

Depends On

1
  • Fidelitas