【发布时间】:2015-09-02 22:30:37
【问题描述】:
我有一个简单的网格视图,它从我的 SQL 服务器数据库中读取数据并显示出来。数据部分使用希伯来语。但是当我使用 gidview 读取数据时 - 我得到的是问号而不是希伯来字母......一旦我检查了我的数据库表,它也存储为问号。
我该怎么办?更改我的 SQL 服务器的设置或者我应该更改我的 SQL 命令语句
请需要帮助。 我正在使用 Vb 2008 Windows 应用程序 C# 和 SQL Server 2014
代码
if (!string.IsNullOrEmpty(txt_C_Request.Text))
{
con = new SqlConnection("Server=" + server + ";Database=" + db + ";User Id=" + user + ";Password=" + pass + "");
SqlCommand Insert_Temp = new SqlCommand("insert into [QAMNI].[dbo].[tbl_Talab_Temp] ([T_ID],[Items_ID],[Car_ID],[Items_Name]) values ('" + txt_T_ID.Text + "','" + txtTempCount.Text + "','" + txt_Car_ID.Text + "','" + txt_C_Request.Text + "')", con);
con.Open();
Insert_Temp.ExecuteNonQuery();
con.Close();
txt_C_Request.Text = "";
Get_Count_Insert_Temp();
Get_Tem_GV();
txt_C_Request.Focus();
}
谢谢
【问题讨论】:
-
你能用代码 sn-p 编辑你的帖子吗
标签: database windows gridview hebrew