Hi i'm tring to execute an Insert and in a Trigger but it didn't work. Somebody can tell me why. Thanks
This is the code :
INSERT into DBName..TableName(Field1, Field2) SELECT i.Field1, Field2 From inserted i
INSERT into DBName..TableName(Field1) SELECT Field1 DBName..TableName WHERE Field1 NOT IN (SELECT Field FROM DBName..TableName)
(The second INSERT it is not execute)
asked Jan 15, 2010 at 12:35 PM in Default
Your second insert is missing the FROM keyword.
answered Jan 15, 2010 at 05:52 PM