Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE RULE regla_confirmado AS @confirmado IN('T', 'F')
- GO
- EXEC sp_addtype tipo_confirmado, 'char(1)', 'NOT NULL'
- GO
- EXEC sp_bindrule regla_confirmado, tipo_confirmado
- GO
- CREATE DEFAULT DEntregaConfirmada AS 'F'
- GO
- --Vincula valores por defecto con tipos de datos
- EXEC sp_bindefault 'DEntregaConfirmada', 'tipo_confirmado'
- GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement