-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