jtds

JDBC (JTDS) SQL Server Connection Closed after SSL Authentication

冷暖自知 提交于 2019-12-04 12:26:17
问题 I am using the jTDS JDBC SQLServer library to connect to a SQL Server 2008 database. It always worked without SSL but once we enabled it, I haven't been able to get it to connect. I've traced the Java as seen below and checked the log on the DB side and the authentication works properly but immediately drops the connection when trying to execute the query. Anyone seen this problem? main, received EOFException: ignored main, called closeInternal(false) main, SEND TLSv1 ALERT: warning,

Configuration of JTDS for use with HikariCP + Spring + MS SQL Server

烂漫一生 提交于 2019-12-04 05:32:22
I kept googling for configuration of JTDS (1.3.1) for use with HikariCP (2.4.3), Spring (4.1.2), and MS SQL Server (2008), but unable to find a complete and working example. Here is what I have: <bean id="dataSource" class="com.zaxxer.hikari.HikariDataSource" destroy-method="close"> <constructor-arg ref="hikariConfig" /> </bean> <bean id="hikariConfig" class="com.zaxxer.hikari.HikariConfig"> <property name="poolName" value="springHikariCP" /> <property name="connectionTestQuery" value="SELECT 1" /> <property name="dataSourceClassName" value="${jdbc.dataSourceClassName}" /> <property name=

ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver

我与影子孤独终老i 提交于 2019-12-04 03:27:13
问题 I have java code which connects to a MS-SQL database and procures some data. Before running the code I set the class path in the Unix Server and it used to work fine. But for some reason the same jar file which was working a few days back is throwing a Class not found exception java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver I have un-jared the jar file and found that the driver class which I'm loading : Class.forName("net.sourceforge.jtds.jdbc.Driver"); is present in the

The driver could not establish a secure connection to SQL Server by using SSL

耗尽温柔 提交于 2019-12-03 23:58:52
问题 I'm having problems connecting to SQL databases. Whenever I try to connect to a SQL server I get the following error; Caused by: org.hibernate.exception.JDBCConnectionException: Error calling Driver#connect at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:132) at org.hibernate.engine.jdbc.connections.internal.BasicConnectionCreator$1$1.convert(BasicConnectionCreator.java:118) at org.hibernate.engine.jdbc.connections.internal

differences between ms sql microsoft's jdbc drivers and jTDS's driver

房东的猫 提交于 2019-12-03 22:18:13
What are the differences between each driver? I mean, besides one of them being open-source What are the pros / cons of each one? Which one would you recommend? here's jTDS own opinion on the subject: http://jtds.sourceforge.net/ They are distinct implementations. The jTDS driver is a type 4 and in my experience has better performance. I have been using the jTDS driver in a production environment without any issues for 5 years. I would recommend going with jTDS. While for many years jTDS was much superior than buggy mssql's own driver, the things are changing to the opposite recently. Here is

Using Sybase ASE 12.5.4 with jTDS drivers with JRuby

£可爱£侵袭症+ 提交于 2019-12-03 20:19:58
Problem I am trying to build a small ruby script - which will be run using jruby once a day - to connect to a Sybase ASE 12.5.4 database and perform a complex query. Ultimately I intend to do some processing on the data and insert the new data in a MySQL table for use within a rails application. Environment jruby v1.4.0 java v1.6.0_15 on Ubuntu Karmic JRuby Installed Gems activerecord-jdbc-adapter (0.9.1) activerecord-2.3.4 Jruby Lib Directory jtds-1.2.5 Query SET rowcount 10 SELECT * FROM TEST_TABLE Code Snippet require 'java' require 'jtds-1.2.5.jar' require 'rubygems' require 'active_record

Stored proc running 30% slower through Java versus running directly on database

你离开我真会死。 提交于 2019-12-03 17:17:47
问题 I'm using Java 1.6, JTDS 1.2.2 (also just tried 1.2.4 to no avail) and SQL Server 2005 to create a CallableStatement to run a stored procedure (with no parameters). I am seeing the Java wrapper running the same stored procedure 30% slower than using SQL Server Management Studio. I've run the MS SQL profiler and there is little difference in I/O between the two processes, so I don't think it's related to query plan caching. The stored proc takes no arguments and returns no data. It uses a

Using JTDS driver [closed]

£可爱£侵袭症+ 提交于 2019-12-03 12:25:20
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I have here a situation. I have a almost release ready (release in 2 month) application that runs queries on the microsoft Sql-Server database.We use the standard Microsoft jdbc driver implementation for sql-server. Works great,no problems. Now there come a developer to me

Connecting android app to Microsoft SQL server 2008

前提是你 提交于 2019-12-03 08:02:17
问题 First of all. I am new to android application development environment and I am trying to connect to mssqlserver 2008 with simple android application using jtds-1.3.1.jar driver . I googled many example on internet but i failed to connect with database . The exception i am getting is Network error IOException: connection time out I don't know what is wrong with my code i am using Eclipse juno IDE. here is my code package com.example.Testproject1; import android.support.v7.app.ActionBarActivity

Stored proc running 30% slower through Java versus running directly on database

烈酒焚心 提交于 2019-12-03 06:20:08
I'm using Java 1.6, JTDS 1.2.2 (also just tried 1.2.4 to no avail) and SQL Server 2005 to create a CallableStatement to run a stored procedure (with no parameters). I am seeing the Java wrapper running the same stored procedure 30% slower than using SQL Server Management Studio. I've run the MS SQL profiler and there is little difference in I/O between the two processes, so I don't think it's related to query plan caching. The stored proc takes no arguments and returns no data. It uses a server-side cursor to calculate the values that are needed to populate a table. I can't see how the calling