Hi,
I want to use literal string with NOT EXISTS for example:
SET @select = 'SELECT TOP 1 * FROM ' + @table + ' WHERE issue_id =' +convert(varchar(10),@field_id)
In @select I am constructing sql string and I want to use in
NOT EXISTS(exec(@select)) but it is giving problem, any advise?
Thanks,
Raj.
I want to use literal string with NOT EXISTS for example:
SET @select = 'SELECT TOP 1 * FROM ' + @table + ' WHERE issue_id =' +convert(varchar(10),@field_id)
In @select I am constructing sql string and I want to use in
NOT EXISTS(exec(@select)) but it is giving problem, any advise?
Thanks,
Raj.