-1
SqlConnection con = new SqlConnection("Data Source=ALIZEE_TROTT\\SQLEXPRESS;Initial Catalog=UrduStemmer;Persist Security Info=false; User ID=sa;Password=password");
SqlDataAdapter sda = new SqlDataAdapter("select * from stop_word_list where word_list='کو' ", con);
DataTable dt = new System.Data.DataTable();
sda.Fill(dt);
if (dt.Rows.Count == 1)
{
MessageBox.Show("Ok");
}
else
{
MessageBox.Show("not ok");
}
这应该是一个问题吗? –
顺便说一句,非常感谢您的密码:-) –
您的列类型是'nchar','nvarchar'或'ntext'。其次,代码文件具有必要的编码,以表示unicode中的常量。 – affan