PaulBarbeau
Programmer
I want to build a string that i then want to use in a select statement (look at example below) and i can not workout how to do this. Can anyone help me or tell me it is imposible in t-sql
declare @sqlline varchar(100)
set @sqlline = 'op_id = 16'
select * from thetable where @sqlline
declare @sqlline varchar(100)
set @sqlline = 'op_id = 16'
select * from thetable where @sqlline