Quantcast
Channel: Latest Questions by ILA
Browsing all 4 articles
Browse latest View live

select from column whose name is in a local var and set local var with value

I want to select a value into a local variable from a column whose name is also in a local variable.I set this up:declare @theID as int, @theIDColumnName as varchar(255), @theSQL as varchar(8000)...

View Article



sp_executesql from trigger to run dynamic select against 'inserted' table

Does anyone know how to use sp_executesql from a trigger to run a select on the inserted (and potentially deleted) tables?I think I've got theID sent in properly as an output parm to sp_executesql, but...

View Article

select from column whose name is in a local var and set local var with value

I want to select a value into a local variable from a column whose name is also in a local variable.I set this up:declare @theID as int, @theIDColumnName as varchar(255), @theSQL as varchar(8000)...

View Article

sp_executesql from trigger to run dynamic select against 'inserted' table

Does anyone know how to use sp_executesql from a trigger to run a select on the inserted (and potentially deleted) tables?I think I've got theID sent in properly as an output parm to sp_executesql, but...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images