Hello , i want to compare a value of a variable with all the values in a table column c# and sql server08. if this value is in column do nothing , if it is in the column do sth .. please help me for my project!! what to use :/
compare value of variable with all values in a sql server08 table column using c#
Collapse
X
-
i have this problem:
Code:string gjejip = "SELECT COUNT (*) FROM [Table_ip] WHERE [IP_votuesit = '" + ip + "']"; SqlCommand cmdFutIp = new SqlCommand(gjejip, con); string gjejip1 = cmdFutIp.ExecuteScalar().ToString(); Label8.Text = gjejip1;
the error is: An expression of non-boolean type specified in a context where a condition is expected, near 'IP_votuesit = '127.0.0.1''.Comment
Comment