jdbc driver for microsoft sql enterprise manager 8.0 - java

I am using microsoft sql enterprise manager version 8.0 for the data storage .
Now i have prepared a jdbc program to fetch data from this database from a remote system and put it in my local system database . I have used sqljdbc4.jar driver to get the connection to the remote db. While running its showing an error saying version 8 sql is not supported by the provided jdbc driver.
Can you tell me what sql jdbc driver should i use for microsoft sql enterprise manager 8.0 .

JDBC driver to connect Sql Server to Java application can be changed about version of Sql Server.
On the newest version of Sql Server you can use sqljdbc4.jar
On the MS Sql Enterprise Manager 8.0 (Sql Server 2000) you must use an older version of JDBC (version 3.0)
Go here to download the correct file.
Tell me if it's OK

Related

IBM Data Server licence for JDBC and SQLJ is invalid

Im trying to connect to an IBM DB2 in AS400 using jdbc and ibm DB2 jcc driver.
credentials are valid. the problem is, when i try to connect to the client db2, it tells me that my db2 connect licence is invalid. even though i tied to connect with the same driver to another IBM DB2 in a free ibm cloud service, and it works without the licence.
is there another way to connect to IBM DB2 without DB2 connect ? or there is no other way than buying the licence ?
The error :
My application.properties
With IBM supplied drivers, access to i-series (AS/400) is non free.
You can use the jt400 driver if you want "free" access.
Otherwise you must either provide a Db2-connect licence on the workstation running the jdbc connection and thus connect directly to AS/400 (i-series), or if your company has already deployed a Db2-connect gateway then you can connect indirectly via that gateway and in this case no workstation-side license is required (because the costs are included in the separate Db2-connect gateway license).

JDBC connection to MS SQL Server 2012 error

I have a server with Windows Server 2003 SP2 and third party application developed with Java SE version 5.0. This app connecting to external database server via configured ODBC source.
In my ODBC sources I have configured source to external MS SQL server. As I can say it uses this driver: SQLSRV32.DLL Version: 2000.86.3959.00. When I configure this source and test conenction it says that connection is successfull.
Many years external DB server runned under MS SQL Server 2008 and all was OK. But now they migrated to MS SQL Server 2012 and my java app lost connection to it with exception like this:
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The incoming
tabular data stream (TDS) remote procedure call (RPC) protocol stream
is incorrect. Parameter 1 (""): Data type 0x38 is unknown.
How can I fix connection? Is there any driver I need to install for Windows or Java?
You are using an outdated and obsolete driver version. The error is a result of a bug in the SQLServer 2000 driver
. To correct the issue you need to update the driver to a newer version. For more specific information on the cause and resolution of the error, see:
Microsoft KB Article 915834
To upgrade to later (2005+) drivers, you will be required update the jar files and the connection string used as described in the article. If you do not have access to the code to make a change, you will need to contact Microsoft and request an available hotfix that fixes the bug in the 2000 drivers as described in the KB and shown here:
To resolve this problem immediately, contact Microsoft Product Support
Services to obtain the hotfix. For a complete list of Microsoft
Product Support Services telephone numbers and information about
support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
It may also be possible to find a later 'patched' version of the driver .dll file. I was able to find an example of the download at this URL: Sqlsrv32.dll 2000.086.4412.00 which is a later version than the one you are using and may correct the issue. If that doesn't work search around for downloads later than this one, which as you can see is build #4412. If you download from a site other than Microsoft,make sure you do a virus scan of the file before using it.

java 1.6 and 1.7 to connect to sql server 2000

i have written a Gui application in java and all is working fine when connecting to SQL 2008 with the jdbc4 API. however i now need to connect to SQL 2000. i have downgraded to jdbc driver 3 but that is incompatible with java 1.6/7 and requires v 1.5 .
is there any way to get the newer versions of java to connect to old SQL 2000.
Have a look at this page. JDBC driver 3.0 with JRE 7 compatibility.
http://www.microsoft.com/en-in/download/details.aspx?id=28562
or have a look at jTDS.
http://jtds.sourceforge.net/
Reading these posts may also help.
How to make Java work with SQL Server?
java.sql.SQLException: SQL Server version 8 is not supported by this driver. SQL State = 08S01, Error Code = 0

Connect from Oracle server to MS SQL Server in Java

I have a Java application that is connecting to a MS SQL Server database using the Microsoft JDBC Driver 3.0 for SQL Server (sqljdbc.jar). The Java version this is being compiled to is 1.5.0_12. It is working fine from my local Windows machine, but it is causing all kinds of errors when I try to run it from the Oracle server. Any advice as to how to make that successful connection?
** Withdrawn... Sorry, didn't see the Application Server portion in the initial question

How to connect database using system dsn in java?

I created system dsn using mysql driver now i have connection path. how to use it in java code.to get connection.
Don't use ODBC. Use MySql JDBC Connector. Take a look at Tutorial.
Tutorial link:
MySQL and Java JDBC - Tutorial
Writing JDBC Applications with MySQL
Using JDBC with MySQL, Getting Started

Categories