Client request: My main goal is to generate automated insert/update scripts. As part of which i am trying to do following that will generate one concatenated string that i can print to screen. I am using Sp_ExecuteSql and want to pass the output parameter names dynamically but i am getting stuck. Please check the attached screenshot and please let me know if you can help me with this ASAP.
Query: