You should replace replace '-1' with 1 as '-1' is not a valid value for a BIT column.
Here's how you could convert the string "-1" to 1 in C#:
string value = "-1";int val = Math.Abs(Convert.ToInt16(value)); // = 1
No comments:
Post a Comment