Hi @Kunal Bhatia ,
Thank you for posting query in Microsoft Q&A Platform.
Use your UPDATE query expression as below.
"Update dbo.persons set gender = '" + $genderValue + "'"
Kindly check below example where I used UPDATE query in post sql script which takes parameter as value. I ran this and worked good for me.
Hope this helps. Please let us know if any further queries. Thank you.
----------------
Please consider hitting Accept Answer. Accepted answers help community as well.
and upvote
for the same. And, if you have any further query do let us know.