I have a Java program using JDBC connecting to SQL...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sreeram_Akella
Posted On:   Monday, February 19, 2001 03:25 PM

I have a Java program using JDBC connecting to SQL Server 7. The program as well as the Database are on a Chinese Windows NT 4.0 SP6. I am using a JDBC Driver called JTurbo 2.0 from Ashna. I created a table with a VARCHAR column. My test program inserts a row with chinese char. string into this table. It then does SELECT on that column and prints it. I see garbage characters being printed. If I instead connect to a SQL Server 7 database running on a Windows NT 4.0 English OS but the test program still running on Chinese OS, it prints correctly. I wrote a test program C++ to access the data using ODBC driver. The SELECT works fine and prints chinese characters. Is this a JDBC driver problem or some mis understanding ?. I would appreciate any help.    More>>

I have a Java program using JDBC connecting to SQL Server 7. The program as well as the Database are on a Chinese Windows NT 4.0 SP6. I am using a JDBC Driver called JTurbo 2.0 from Ashna. I created a table with a VARCHAR column. My test program inserts a row with chinese char. string into this table. It then does SELECT on that column and prints it. I see garbage characters being printed. If I instead connect to a SQL Server 7 database running on a Windows NT 4.0 English OS but the test program still running on Chinese OS, it prints correctly. I wrote a test program C++ to access the data using ODBC driver. The SELECT works fine and prints chinese characters. Is this a JDBC driver problem or some mis understanding ?.

I would appreciate any help.

   <<Less

Re: I have a Java program using JDBC connecting to SQL...

Posted By:   Anonymous  
Posted On:   Wednesday, January 23, 2002 11:38 PM

I need your help...

I try to connect my database in a chinese OS environment, but it give me error: Exception Access Violation

I am using sun.jdbc.odbc.JdbcOdbcDriver

Can tell me how to get it working ??
I need it urgently !!

Thank you in advance.
About | Sitemap | Contact