I'm using MS SQL server 2008 and I have to update a long list of names in one of the tables. I would like to pass a list of names and have them updated by adding a prefix to them. Say I pass X,Y,Z to the stored procedure and it updates them to Disable_X, Disable_Y, Disable_Z.
I think table Value parameters is what I'm looking for and I've read http://www.sommarskog.se/arrays-in-sql-2008.html#TVP_in_TSQL but it only talks about inserting multiple parameters and what I'm trying to do is to update multiple records if they exist. I'm just starting to learn these concepts, so could someone point me in the right direction?
EDIT: I would like to pass a list of names that I want to update to a stored procedure. Instead of having to call the stored procedure multiple times, I only want to call it once.