473,395 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Hebrew with OleDbConnection

Here what I did:
string cmdText = String.Format(("CREATE TABLE {0} (dno int primary key, Sunday char(5), Monday char(5), Tuesday char(5), Wednesday char(5), Thursday char(5), Friday char(5))"), tableName);
OleDbConnection conn = new OleDbConnection(Form1.ConnectionString);
conn.Open();
OleDbCommand cmd = new OleDbCommand(cmdText, conn);
cmd.ExecuteNonQuery();
conn.Close();

And it works great, but when I try put Hebrew in it (notice the string cmdText)
string cmdText = String.Format("CREATE TABLE {0} (dno int primary key, יום א char(5), יום ב char(5), יום ג char(5), יום ד char(5), יום ה char(5), יום ו char(5))", tableName);
OleDbConnection conn = new OleDbConnection(Form1.ConnectionString);
conn.Open();
OleDbCommand cmd = new OleDbCommand(cmdText, conn);
cmd.ExecuteNonQuery();
conn.Close();
It doesnt work and causes an exception... anyone know why it doesnt support hebrew, and if theres a way to fix it?
Jan 5 '07 #1
1 1212
Cant anyone help me?
Jan 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Shmuel | last post by:
How can I output hebrew ? I have tried to make php script to write hebrew, but it can't do it, why? I tried to put put this line in the beginning of the script: <meta http-equiv=Content-Type...
5
by: Mr. x | last post by:
Hello, I am building a web-site. For a reason, I don't know why, if I put my site on my computer - I see hebrew character fine, but when I put my site on hosting company I don't see hebrew...
2
by: Mr. x | last post by:
Hello, I am sending emails with Hebrew contents. When receiving emails - I cannot see the Hebrew characters (it is not outlook express configuration, because when receiving emails from friends -...
3
by: Eitan | last post by:
Hello, I am looking for a function which convert hebrew string (windows) to hebrew string (dos). That's should pay attantion to commas, numbers, and any other character, that may have problem...
7
by: Elie Nacache | last post by:
Hi all, I develop an application (JAVA/JSP) on RedHat PostgreSQL 7.4.3 with PostgreSQL 7.4.2 JDBC3 with SSL (build 213). This application needs to serve pages in LATIN1 and Hebrew. For that I...
0
by: Sim Zacks | last post by:
I read the recent posts about Hebrew support already and I am having a similar problem, but with an MS Access front end. The database is Unicode encoded. I can input Hebrew, query in hebrew and...
40
by: Shmuel (Seymour J.) Metz | last post by:
I'd like to include some Hebrew names in a web page. HTML 4 doesn't appear to include character attributes for ISO-8859-8. I'd prefer avoiding numeric references, e.g.,...
2
by: Zippy | last post by:
Hi. I'm working in Access 2003 - standard English version - and am trying to write a program with a Hebrew user interface. Being that Hebrew is a right-to-left language, the orders of columns...
2
by: Mitul | last post by:
Hello Friend, I am having very strange problem with mail function. As I have to implement Newsletter things in my hebrew site. I have implemented everything but having problem with subject line...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.