Guest_imported
New member
- Jan 1, 1970
- 0
with SQL server 7.0,
in a table trigger, i want to do something like:
declare @col_name varchar(20)
-- the value of @col_name will be dynamical assigned
...
...
exec ('select ' + @col_name + ' from inserted' )
------------------
error is : invalid object 'inserted'
what can i do?
thanks!
in a table trigger, i want to do something like:
declare @col_name varchar(20)
-- the value of @col_name will be dynamical assigned
...
...
exec ('select ' + @col_name + ' from inserted' )
------------------
error is : invalid object 'inserted'
what can i do?
thanks!