I have 10 field in Database and I have 10 different button in my UI page. I am trying to update my Database field individually. When i click 1 button it will update one field and 2nd for another and so on but using only one SQL update Query. Is this possible in SQL server 2008
If Yes then kindly suggest.
Thnx
Try this
And when pressing the Button1 provide value only for @Button1Param parameter to the query, leaving others = DBNull.Value
So, you have not to use dynamic or multiple different queries