• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 679
  • Last Modified:

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)
0
zolf
Asked:
zolf
  • 4
  • 2
  • 2
2 Solutions
 
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
 
quincydudeCommented:
Check if the jre version installed is the same among all 3 computers
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
manuel_mCommented:
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now