ALTER trigger[dbo].[apiSyncBC] on [dbo].[ApiBarcodes]
after insert
as
begin
   set nocount on;
INSERT INTO CDN.TwrEan(TwE_TwrId, TwE_EAN, TwE_Opis, TwE_Domyslny, TwE_JM)
SELECT objectId TwE_TwrId, Barcode TwE_EAN, '' TwE_Opis, 0 TwE_Domyslny, UM TwE_JM FROM inserted;

end