Java.sql.SQLException: [Microsoft] [ODBC Driver Manager] Invalid line or buffer length

I am trying to run a Java application that connects to the MS SQL Server 2008 database. The application always worked fine when it started from a 32-bit machine. The MS SQL database remains and will remain on a 32-bit machine. Only Java code moves to a 64-bit machine.

Now I need to transfer the Java code to a 64-bit machine. I got the expected inconsistent architecture errors by building code using the 64-bit Java JVM and using the 64-bit version of the native SQL client data source / driver.

Now I have an error in the header, Microsoft] [ODBC Driver Manager] Invalid line or buffer length.

I also installed the 32-bit JVM and SQL Native Client 10 on a 64-bit machine and tried to run this path, but still did not go.

Will there be a problem, no matter what I do, try to run a java application from a 64-bit machine that is trying to talk to the MS SQL database on another machine that is 32-bit?

Thanks!!

Alex

+4
source share
1 answer

Can I find out which OS you are using? Hope you use different OS on these machines. Although Java is platform independent, MS SQL Server is platform dependent. This can be a problem.

I am also mistaken.

0
source

Source: https://habr.com/ru/post/1482614/


All Articles