CREATE TRIGGER ignore_identity ON order_data
INSTEAD OF INSERT
AS
BEGIN
INSERT INTO order_data ( numbertype, k_apparat_dic, datatype_order_data, comment_order_data, NAM_order_data, CurModel_order_data, lock_order_data,
NewModel_order_data, NewESN_order_data, CurESN_order_data, NewNumber_order_data, CurNumber_order_data, dogovor_order_data,
k_order)
SELECT numbertype, k_apparat_dic, datatype_order_data, comment_order_data, NAM_order_data, CurModel_order_data, lock_order_data,
NewModel_order_data, NewESN_order_data, CurESN_order_data, NewNumber_order_data, CurNumber_order_data, dogovor_order_data,
k_order FROM inserted
END |