when i want to insert some unicode data from c# form to oracle 11g EX ... in oracle the data like this '????????' but when i want to insert unicode data from oracle command it does not have any problem.
insert into depts values (8,'?????')
it does not have a problem (oracle sql command) but in c# i use
C#
com.CommandText = "insert into DEPTS values('"+dept_cod_txt.Text+"','"+dept_name_txt.Text+"')"; com.ExecuteNonQuery();

VulpesRank #55 · 29.2K reputationPosted Mar 12, 2014, 3:41 AM EDT
com.CommandText = "insert into DEPTS values("+dept_cod_txt.Text+",'"+dept_name_txt.Text+"')";
com.ExecuteNonQuery();
honar abubakr62 reputationPosted Mar 12, 2014, 3:46 AM EDT
VulpesRank #55 · 29.2K reputationPosted Mar 12, 2014, 4:00 AM EDT
Are you saying that, after the insertion, the dept_name column in the Oracle table is not showing the correct value?
If not, what is the data type of that column?
honar abubakr62 reputationPosted Mar 12, 2014, 4:04 AM EDT
at first my dept_name column datatype was varchar2 ... i changed it to nvarchar2 ... still i have the same problem?
VulpesRank #55 · 29.2K reputationPosted Mar 12, 2014, 4:52 AM EDT
If you haven't done it already, try inserting: Unicode=True in your connection string.