I know I missasked the question, and that’s probably the reason I can’t find the solution myself:
How do I take a result in a stored procedure and and change the data such as
if column1 = AAA then
column1=Hello
else if column1 = BBB then
column1 = goodbye
and have the data return with the new values?
Thanks
If you can get to the content of the stored procedure, you should change it to a table-valued function instead – if possible, an inline one (because that has a much higher chance of being able to be optimised).
This will let you query the results and change it as needed:
If you can’t do this, and are very much stuck with a stored procedure, you could wrap it up in OPENROWSET:
This is a way to treat the output of a procedure as a table expression, but if you can do it without the procedure, that’s better still.