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
com.CommandText = "insert into DEPTS values('"+dept_cod_txt.Text+"','"+dept_name_txt.Text+"')"; com.ExecuteNonQuery();
VulpesPosted Mar 12, 2014, 8:52 AM
If you haven't done it already, try inserting: Unicode=True in your connection string.
honar abubakrPosted Mar 12, 2014, 8:04 AM
at first my dept_name column datatype was varchar2 ... i changed it to nvarchar2 ... still i have the same problem?
VulpesPosted Mar 12, 2014, 8:00 AM
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 abubakrPosted Mar 12, 2014, 7:46 AM
VulpesPosted Mar 12, 2014, 7:41 AM
com.CommandText = "insert into DEPTS values("+dept_cod_txt.Text+",'"+dept_name_txt.Text+"')";
com.ExecuteNonQuery();