hi,
I have this inside my trigger
EXEC ('DECLARE @PKValue varchar(255) SELECT @PKValue = ' + @PKField + ' from inserted')
Though the trigger does not execute despite that it parses okay.
Is it not possible to view the inserted or deleted tables inside a trigger when the SQL to do so is executed from within an EXEC statement?
The error I get is "'Invalid object name inserted"
Thanks.
I have this inside my trigger
EXEC ('DECLARE @PKValue varchar(255) SELECT @PKValue = ' + @PKField + ' from inserted')
Though the trigger does not execute despite that it parses okay.
Is it not possible to view the inserted or deleted tables inside a trigger when the SQL to do so is executed from within an EXEC statement?
The error I get is "'Invalid object name inserted"
Thanks.