Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- USE [bases]
- GO
- /****** Object: Trigger [dbo].[restrinccion] Script Date: 19/02/2019 11:09:18 a. m. ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- ALTER TRIGGER [dbo].[restrinccion]
- ON [dbo].[tblencfacturas]
- FOR INSERT
- AS
- DECLARE @consecutivo CHAR(20)
- IF (@consecutivo>=1070039333) BEGIN
- RAISERROR ('No se puede realizar la Factura, restrinccion sistemas.',
- -- Message text.
- 16, -- Severity.
- 1 -- State.
- )
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement