Hi all,
I need to create a sproc that will take:
@ids varchar(5000),
@value varchar(50)
and want it to do something like:
update table
set
value = @value
where id isin(@ids)
@ids is a comma delimited string e.g. '123, 123, 123, 123'. I don't think ISIN is actually a function, but I used to to explain what im trying to accomplish. I tried breaking the id's up and creating a temp table, but had some problems with that for various reasons.
Any help would be appreciated. Thanks, Matt.
I need to create a sproc that will take:
@ids varchar(5000),
@value varchar(50)
and want it to do something like:
update table
set
value = @value
where id isin(@ids)
@ids is a comma delimited string e.g. '123, 123, 123, 123'. I don't think ISIN is actually a function, but I used to to explain what im trying to accomplish. I tried breaking the id's up and creating a temp table, but had some problems with that for various reasons.
Any help would be appreciated. Thanks, Matt.