SQLServer Exception

hello there,

i installed sql server 2005 on my laptop and when i try to run my java jarred application.i get this error.but on my desktop i dont have any problem.please help

com.microsoft.sqlserver.jdbc.SQLServerException: Codepage 1,256 is not supported
 by the Java environment.
        at com.microsoft.sqlserver.jdbc.SQLCollation.readCollation(Unknown Sourc
e)
        at com.microsoft.sqlserver.jdbc.SQLCollation.<init>(Unknown Source)
        at com.microsoft.sqlserver.jdbc.IOBuffer.processEnvChange(Unknown Source
)
        at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.processLogon(Unknown
 Source)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(Unknown Source
)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknow
n Source)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover
(Unknown Source)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Sour
ce)
        at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at com.MainForm.<init>(com/MainForm)
        at com.MainForm.main(com/MainForm)
zolfAsked:
Who is Participating?
 
quincydudeConnect With a Mentor Commented:
Check if the jre version installed is the same among all 3 computers
0
 
quincydudeCommented:
0
 
zolfAuthor Commented:

this says to change my sqljdbc to someother jdbc jar.but i am using this on more then 2 computers and it is working good.only on one computer i have this problem.what could it be,please help
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
manuel_mConnect With a Mentor Commented:
please check which versions of java you have installed.
are you connecting to the same SQL-server? Or do you have your databases on each local machine?

The problem is that the collation of your table is set to Codepage 1256 (Arabic). Are all collations in your db set to Codepage 1256 or are there other collations ?

0
 
zolfAuthor Commented:

>>are you connecting to the same SQL-server? Or do you have your databases on each local machine?
Each has its own local db
0
 
zolfAuthor Commented:
>>The problem is that the collation of your table is set to Codepage 1256 (Arabic). Are all collations in your db set to Codepage 1256 or are there other collations ?

only one table has this
0
 
manuel_mCommented:
And all local dbs have the same table with the Codepage 1256 collation?
0
 
zolfAuthor Commented:

>>And all local dbs have the same table with the Codepage 1256 collation?
what do you mean
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.