Advertisement
gmendezm

DEntregaConfirmada

May 30th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.34 KB | None | 0 0
  1. CREATE RULE regla_confirmado AS @confirmado IN('T', 'F')
  2. GO
  3. EXEC sp_addtype tipo_confirmado, 'char(1)', 'NOT NULL'
  4. GO
  5. EXEC sp_bindrule regla_confirmado, tipo_confirmado
  6. GO
  7.  
  8. CREATE DEFAULT DEntregaConfirmada AS 'F'
  9. GO
  10.  
  11. --Vincula valores por defecto con tipos de datos
  12. EXEC sp_bindefault 'DEntregaConfirmada', 'tipo_confirmado'
  13. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement