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 (~) | 1 |
| Created | 10/1/2007 3:29:34 PM |
| Last Modified | 4/3/2016 12:31:46 AM |
Columns
5| Key | Name | Data Type | Length | Precision | Scale | Not Null | Identity | Rule | Default | Computed | Persisted | Description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tipo_variable | int | 4 | 10 | 0 | True |
False |
False |
|||||
| descripcion_tipo_variable | varchar | 100 | 0 | 0 | False |
False |
False |
|||||
| validacion | varchar | 1 | 0 | 0 | False |
False |
False |
|||||
| longitud_maxima | smallint | 2 | 5 | 0 | False |
False |
False |
|||||
| decimales | tinyint | 1 | 3 | 0 | False |
False |
False |
Triggers
2| Name | ANSI Nulls ON | Quoted Identifier ON | On | Not For Replication | Description |
|---|---|---|---|---|---|
| tD_tipos_variable | True |
True |
AFTER DELETE | False |
|
| tU_tipos_variable | True |
True |
AFTER UPDATE | False |
SQL Script
Copy
CREATE TABLE dbo.tipos_variable (
tipo_variable int NOT NULL,
descripcion_tipo_variable varchar(100) NULL,
validacion varchar(1) NULL,
longitud_maxima smallint NULL,
decimales tinyint NULL,
PRIMARY KEY NONCLUSTERED (tipo_variable) WITH (FILLFACTOR = 90)
)
ON [PRIMARY]
GO
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER trigger dbo.tD_tipos_variable on dbo.tipos_variable for DELETE as
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
/* DELETE trigger on tipos_variable */
begin
declare @errno int,
@errmsg varchar(255)
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
/* tipos_variable R/266 tipos_informe_variables ON PARENT DELETE SET NULL */
/* ERWIN_RELATION:PARENT_OWNER="", PARENT_TABLE="tipos_variable"
CHILD_OWNER="", CHILD_TABLE="tipos_informe_variables"
P2C_VERB_PHRASE="R/266", C2P_VERB_PHRASE="",
FK_CONSTRAINT="R_266", FK_COLUMNS="tipo_variable" */
update tipos_informe_variables
set
/* %SetFK(tipos_informe_variables,NULL) */
tipos_informe_variables.tipo_variable = NULL
from tipos_informe_variables,deleted
where
/* %JoinFKPK(tipos_informe_variables,deleted," = "," and") */
tipos_informe_variables.tipo_variable = deleted.tipo_variable
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
return
error:
raiserror (@errmsg,@errno,1)
rollback transaction
end
GO
CREATE OR ALTER trigger dbo.tU_tipos_variable on dbo.tipos_variable for UPDATE as
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
/* UPDATE trigger on tipos_variable */
begin
declare @numrows int,
@nullcnt int,
@validcnt int,
@instipo_variable int,
@errno int,
@errmsg varchar(255)
select @numrows = @@rowcount
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
/* tipos_variable R/266 tipos_informe_variables ON PARENT UPDATE SET NULL */
/* ERWIN_RELATION:PARENT_OWNER="", PARENT_TABLE="tipos_variable"
CHILD_OWNER="", CHILD_TABLE="tipos_informe_variables"
P2C_VERB_PHRASE="R/266", C2P_VERB_PHRASE="",
FK_CONSTRAINT="R_266", FK_COLUMNS="tipo_variable" */
if
/* %ParentPK(" or",update) */
update(tipo_variable)
begin
update tipos_informe_variables
set
/* %SetFK(tipos_informe_variables,NULL) */
tipos_informe_variables.tipo_variable = NULL
from tipos_informe_variables,deleted
where
/* %JoinFKPK(tipos_informe_variables,deleted," = "," and") */
tipos_informe_variables.tipo_variable = deleted.tipo_variable
end
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
return
error:
raiserror (@errmsg,@errno,1)
rollback transaction
end
GO
tipo_variable int NOT NULL,
descripcion_tipo_variable varchar(100) NULL,
validacion varchar(1) NULL,
longitud_maxima smallint NULL,
decimales tinyint NULL,
PRIMARY KEY NONCLUSTERED (tipo_variable) WITH (FILLFACTOR = 90)
)
ON [PRIMARY]
GO
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER trigger dbo.tD_tipos_variable on dbo.tipos_variable for DELETE as
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
/* DELETE trigger on tipos_variable */
begin
declare @errno int,
@errmsg varchar(255)
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
/* tipos_variable R/266 tipos_informe_variables ON PARENT DELETE SET NULL */
/* ERWIN_RELATION:PARENT_OWNER="", PARENT_TABLE="tipos_variable"
CHILD_OWNER="", CHILD_TABLE="tipos_informe_variables"
P2C_VERB_PHRASE="R/266", C2P_VERB_PHRASE="",
FK_CONSTRAINT="R_266", FK_COLUMNS="tipo_variable" */
update tipos_informe_variables
set
/* %SetFK(tipos_informe_variables,NULL) */
tipos_informe_variables.tipo_variable = NULL
from tipos_informe_variables,deleted
where
/* %JoinFKPK(tipos_informe_variables,deleted," = "," and") */
tipos_informe_variables.tipo_variable = deleted.tipo_variable
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
return
error:
raiserror (@errmsg,@errno,1)
rollback transaction
end
GO
CREATE OR ALTER trigger dbo.tU_tipos_variable on dbo.tipos_variable for UPDATE as
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
/* UPDATE trigger on tipos_variable */
begin
declare @numrows int,
@nullcnt int,
@validcnt int,
@instipo_variable int,
@errno int,
@errmsg varchar(255)
select @numrows = @@rowcount
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
/* tipos_variable R/266 tipos_informe_variables ON PARENT UPDATE SET NULL */
/* ERWIN_RELATION:PARENT_OWNER="", PARENT_TABLE="tipos_variable"
CHILD_OWNER="", CHILD_TABLE="tipos_informe_variables"
P2C_VERB_PHRASE="R/266", C2P_VERB_PHRASE="",
FK_CONSTRAINT="R_266", FK_COLUMNS="tipo_variable" */
if
/* %ParentPK(" or",update) */
update(tipo_variable)
begin
update tipos_informe_variables
set
/* %SetFK(tipos_informe_variables,NULL) */
tipos_informe_variables.tipo_variable = NULL
from tipos_informe_variables,deleted
where
/* %JoinFKPK(tipos_informe_variables,deleted," = "," and") */
tipos_informe_variables.tipo_variable = deleted.tipo_variable
end
/* ERwin Builtin Mon Oct 01 10:32:44 2007 */
return
error:
raiserror (@errmsg,@errno,1)
rollback transaction
end
GO
Depends On
2- Fidelitas
- dbo.tipos_informe_variables