rturner003
Programmer
create procedure p_test
@cs varchar(200)
as
update decisions
set subscription_date=getdate()
where id in (@cs)
The parameter cs would contain someting like '81,82,85'
The field id is an int field
I tried charindex which of course does not work as id is an int. Is their a better way than using set @sql='.... in ('+@cs+')' and EXEC(@sql)?
@cs varchar(200)
as
update decisions
set subscription_date=getdate()
where id in (@cs)
The parameter cs would contain someting like '81,82,85'
The field id is an int field
I tried charindex which of course does not work as id is an int. Is their a better way than using set @sql='.... in ('+@cs+')' and EXEC(@sql)?