JDBC Drivers
Aug 6, 2001
Is anyone out there using Unix/Java/Sun app server to connect to SQL Server via JDBC? If so, what drivers are you using? We are currently testing with WebLogic's BEA JDBC driver. Does anyone have any feedback on it?
View 2 Replies
ADVERTISEMENT
Feb 28, 2008
Hello:
I downloaded JDBC drivers SP3. When I tried to connect to the SQL Server, I get the following error:
An error occured while establishing the connection.
Type: java.sql.SQLException Error Code: 0 SQL State: 08001
Message:
[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
The connection string is:jdbcqlserver://VENKI-2008:1433;databaseName=MedDRA.
The following drivers are loaded:
msbase.jar
mssqlserver.jar
msutil.jar
Thanks for your help.
Venki
View 3 Replies
View Related
Apr 14, 2008
I have read similar posts to this, but I am still having problems.
I am trying to use connection pooling to connect to a local SQL Server 2005 database. I am running my application using
MyEclipse Enterprise Workbench. I have verified that sqljdbc.jar resides in "WebRoot/WEB-INF/lib/"
"WebRoot/WEB-INF/web.xml":
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsichemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<resource-ref>
<res-ref-name>jdbc/DefaultDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
"WebRoot/META-INFcontext.xml":
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<Resource name="jdbc/DefaultDS"
auth="Container"
type="javax.sql.DataSource"
username="tec"
password="tec"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDrive"
url="jdbcqlserver://localhost:1433/tec;databaseName=tec;user=tec;password=test;"
validationQuery="select 1"
maxActive="10"
maxIdle="2"/>
</Context>
Classpath:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/dom.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jaxen-full.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jaxp-api.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jdbc2_0-stdext.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/sqljdbc.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jstl.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/mail.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/sax.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/saxpath.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/standard.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/xalan.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/xercesImpl.jar"/>
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath>
Code to connect:
import java.io.Serializable;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
public int testConnect(){
Connection conn = null;
InitialContext ctx = null;
java.sql.Statement stmt = null;
try {
ctx = new InitialContext();
Context envCtx = (Context) ctx.lookup("java:comp/env");
DataSource ds = (DataSource) envCtx.lookup("jdbc/DefaultDS");/*This is generating the Cannot load JDBC driver class... error*/
conn = ds.getConnection();
stmt = conn.createStatement();
return CONSTANT.SUCCESS;
} catch (Exception e) {
return CONSTANT.FAILURE;
}finally {
try {
if (stmt != null)
stmt.close();
if (conn != null)
conn.close();
if (ctx != null)
ctx.close();
} catch (Exception ex) {
// do nothing
return CONSTANT.FAILURE;
}
}
}
Any ideas would be greatly appreciated.
View 17 Replies
View Related
Aug 8, 2006
Hi all,
We've just stumbled on a 1.0 version incompatibility with the JDBC specs.
Problem: A table with SMALLINT column. According to JDBC specs version 3.0
(p.B-179) and 4.0 (p.221)), the value should be converted to Integer type.
Unfortunatelly we get a Short object :(
Now, I remember, this case was also affecting old JSQLConnect driver from
DataDirect. Could that problem sneak to new MS driver too?
Please let me know any resolution to this problem if exists.
The issue has not been fixed in CTP 1.1 version. Any ideas if it can be fixed??
Cheers,
Piotr
View 1 Replies
View Related
Mar 12, 2008
I've got an import app written in Java. One table I'm importing from contains 22 million records. When I run the app in a 2000 environment, I have my max heap set at 512, and the table gets imported. When I run in a 2005 environment, I have to change the max heap to 1152 or it will error out with a similiar error:
com.microsoft.sqlserver.jdbc.SQLServerException: The system is out of memory. Use server side cursors for large result sets:Java heap space. Result set size:854,269,999. JVM total memory size:1,065,484,288. (<--this is with max heap at 1024)
what is the difference between the 2000 and 2005 JDBC that I have to set max heap in one and not the other?
View 3 Replies
View Related
Jan 19, 2007
Hey guys .. I am trying to run SSIS on the WIn2k3 .. The server is a 64 bit machine. I could not find Db2 drivers for a 64 bit one .. any clues as to how , I can find it. By the way .. I have been running the package in 32 bit mode for now .. which I dont think is a very good idea.
Any suggestions are most welcome ..
View 3 Replies
View Related
Jan 28, 2000
Hi,
I have an ODBC question. They say that to use SQL server 7.0 'tools', one must use ODBC 3.70 drivers. Is there anywhere where I can find a list of these 'tools' that will need these drivers?
Thanks
Sach
View 1 Replies
View Related
Apr 11, 2006
Hi,
New to databases so need some help. While trying to set up data source in control panel, I find that there are no drivers for *mdf files. Just *.dbo and *.xls and others. Can someone tell me what to do. I can't get analysis services to let me access my database, which are *mdf files a friend sent me.
What do I need to do...Can someone help me.
Regards,
Milfredo.
View 5 Replies
View Related
Jan 11, 2008
Experts,
Will 32-bit ODBC Drivers work in 64- bit machine? I have already installed 32-bit ODBC drivers in 64-bit machine so i wanna make sure all applications work fine.
ALSO, Where can i get to download ODBC Drivers for
1) Oracle in Orahome 92
2)Sybase SQL Anywhere 5.0
3) Informix 3.8 32 bit
4) openlink
Is there any 64-bit drivers available for above ODBC Drivers?
PLease Help.Thanks
View 1 Replies
View Related
Jan 30, 2008
Okay, this is a weird question/problem. I have a 64 bit database server running on 64 bit Windows. This is just fine until I moved a 32 bit database over to it. My DB is trying to get some reporting to work and discovered that there are no ODBC drivers for Excel on this new 64 bit box. Are there 64 bit drivers for MS Excel? And access for that matter? If so, where are they?
Thanks.
View 4 Replies
View Related
Sep 27, 2006
hi
I want to know file's list of SQLSERVER2000 Driver
I write a program , it connect to sqlserver2000 in Eternet and
client side of software install in every computer but i have to install sqlserver2000 in every client pc
how can i connect to SQLServer2000 Server (in a network) with out installing Sqlserver2000 ?
Tanks
View 4 Replies
View Related
May 11, 2007
I am trying to load a Fox Pro file which I used to be able to load before I installed 64 bit Vista. I'm using ver 9 of the fox pro driver. I don't know if it's a driver problem or something else I am doing wrong.
Here's the error msg:
SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040154.
An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".
Error: 0xC020801C at Load Country, OLE DB Source [1]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "C:Usersjohn.church.LLCDesktopMaxMinAccountingSystem DatabaseAccountingSystem DatabaseAccountingSystem.DBC" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
But then it also says something about registering a class. I'm a .net moron so I'm not sure what that means.
Any thoughts?
Thanks.
(Vista 64, SQL Svr 2005 64, visual studio - with all known updates/patches installed)
View 5 Replies
View Related
Nov 17, 2000
I have a lot of client machines that do not have the SQL Server ODBC driver installed. Without having to install SQL Server client on their computers, I'd much prefer to just install the driver itself. Where on earth do I get it? The microsoft website is about the most confusing site when it comes to looking for driver downloads.
View 2 Replies
View Related
Oct 5, 1999
Hello,
We're upgrading to SQL Server 7.0 and need to update all our clients with the latest version of the ODBC and SQL Server Drivers. Can someone tell
how to update just these drivers? We tried to use the latest MDAC executable, but it broke applications on at least one client, so we were hoping
to narrow it down to just ODBC and SQL Server.
Thanks,
Dan Holland
dth@qad.com
View 1 Replies
View Related
Jul 20, 2005
Hi all,This should be easy, but it has me pulling my hair out.I have a SQL 7 server running on NT server 4 with all the patches andupdates for both. I cannot seem to get the openrowset to run againstan oracle server, try as I might to install the drivers from oracle.The first error I got said to install the drivers, so I did; now itsays 'msdaora' bla bla TNS: could not resolve service name. I havetried the sql statement on another server and it works there. Does ithave anything to do with the different 'Homes' that oracle wants toinstall it's drivers into? I have installed and uninstalled thedrivers, different versions, different configurations at least 300times. What am I missing?Thanks for your help.Pachydermitis
View 3 Replies
View Related
Nov 28, 2006
Hi all
For some reason, my Excel / Access drivers have disappeared from the list of available data sources when running the Import wizard or when trying to create a dts package. They are installed on the machine as I can see them through the ODBC Administrator. I have googled extensively, found some posts relating to TimeSlips (not relevant as not installed), re-installing MDAC.
Having done all the relevant stuff (updating to latest MDAC), still not coming up. Installed SQL 2005 Management Studio thinking that may help. Still nothing.Can someone please give me some advice, APART FROM RE-INSTALLING OS.
How does Import wizard pickup the available drivers, any registry settings...? Currently running XP SP2 with all the latest updates.
Need to get data uploaded to customer site from Excel spreadsheet. So any help / advice would be greatly appreciated!
TIA
Regan
View 1 Replies
View Related
Mar 6, 2008
i lost my laptop driver's cd,right now i am using windows XP professional.and laptop is of compaq v3000.
so from where i get my laptops driver,can you help me out .?
View 1 Replies
View Related
Jul 31, 2007
Hello everyone,
I'm running into an unusual situation with 64 bit SSRS and Sybase drivers and I'm hoping someone has a similar scenario. This isn't the usual OLE DB/ODBC parameter problem.
Our first issue was that we had 32 bit sybase (12.5) drivers installed on our 64 bit machine and SSRS Report Server could not utilize drivers. We resolved this by installing the 15.0 64 bit drivers (the only Sybase 64 bit drivers we know of).
The real problem is as follows:
In SSRS, we can design reports with parameters. BIDS prevents utilizing named parameters while connecting to a database via ODBC or OLE DB (I'm not sure if this is an ODBC standard or if it was just coded this way to avoid problems). Prior to our new server (and new 64 bit drivers) we were always able to use unnamed parameters. We were able to get all of our reports to work with the question mark syntax.
The new 15.0 drivers apparently do not support this same implementation of unnamed parameters (using ? used to work with 12.5 drivers but now we get an error).
[---> System.Data.Odbc.OdbcException: ERROR [ZZZZZ] [Sybase][ODBC Driver][Adaptive Server Enterprise]There is no host variable corresponding to the one specified by the PARAM datastream. This means that this variable '@dr_t_a0' was not used in the preceding DECLARE CURSOR or SQL command.]
If I open the RDL file and change the ? to @VariableName and upload to server, it appears that the 15.0 drivers do support named parameters.
1) Is there a specific reason BIDS prevents the named parameters from being used?
2) Has anyone seen this behavior change with Reporting Services and the upgraded Sybase drivers?
3) Does anyone have any advice on things I can try?
I realize that this may be a question better directed towards sybase, and I am currently working on having our DBAs open up a support case to see if they have any history of someone working with SSRS and Sybase 15.0 drivers.
Thank you!
Regards,
Dan
View 1 Replies
View Related
Jan 26, 2007
SO I installed the MyOdbc drivers 5.0 and 3.51 and then went into my Data Sources(ODBC) drivers in my Administrative Control Panel
I then proceeded to add the DSN Under System DSN and I also tried User DSN
When I try to use the import/export tool in my SQL Server 2005 Management studio I don't get presented with the MySql drivers at all for a source
why is this?
View 3 Replies
View Related
Jan 23, 2001
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ''
How to fix this error...
View 1 Replies
View Related
Mar 22, 2000
What are the Latest ODBC and SQL Server Drivers for SQL 6.5? How can I upgrade them?
By the way, IS IT ABSOLUTELY NECESSARY to reboot the machine after application of a SQL Server service pack? (There is this dispute going on at my co.)
View 1 Replies
View Related
Dec 20, 2002
Hello,
When I go to import/export wizard, first I SOMETIMES get this error: DTS Import/Export Wizard Error: Co Create Instance: Specified Module could not be found.
That doesn't sound good and if someone knows what I should do about it, that'd be great, but then the imp/exp wizard does open and I have another problem:
My list of available ... drivers? the popup box where you choose to export from a text file, or excel, or whatever .. anyway that list is TOO short and has NOTHING that works in it. It has some things that look like they're in portuguese or something and a bunch of Merant options, none of which seem to work.
If I could JUST save out and import TEXT I'd be happy. Which means I also need, I think the OLE one for SQL Server. (for the export part).
Help.
PLEASE.
I don't know how to get more options to show up in that list.
Thanks so much!
TajMaya
View 1 Replies
View Related
Jun 8, 2001
Hello,
We're upgrading to SQL Server 2000 and need to update all our clients with the latest version of the ODBC and SQL Server Drivers. Can someone tell
How do I upgrade the ODBC driver so that they can connected to SQL 2000.
The client pc's have an older version of ODBC drivers which supports Sql 7.0 Which dll do I need ? ? Where do I get it? Does it have on sql 2000 cd?
Thanks
Priti
View 1 Replies
View Related
Sep 5, 2001
Hello,
We're upgrading to SQL Server 2000 and need to update all our clients with the latest version of the ODBC and SQL Server Drivers. Can someone tell
after updating the ODBC driver to SQL 2000 would it support SQL Server 7.0 ?
Thanks
Sejal
View 1 Replies
View Related
Oct 18, 2007
I'm not able to see microsoft ole db provider for odbc drivers on sql server 2005. Anyone know which driver I should install to see it?
I'm trying to create a linked server from as400 to SS2K5.
http://www.sqlserverstudy.com
View 2 Replies
View Related
Jul 23, 2005
They are corrupt. I cannot get the odbc driver applet for sql serverto open when I click add and I cannot configure any existing ones. Andthe usage of the drivers fail.Other ODBC drivers work.Does anyone know how to reinstall the SQL Server set of ODBC drivers?MDAC wouldn't install, said it was already at current level.Thanks for any ideas.
View 2 Replies
View Related
Oct 10, 2007
Anyone know where I can find these drivers?
View 3 Replies
View Related
Jan 3, 2008
Hi all,
I've been tasked to do some investigation at my workplace as to the best way to move forward with changing from our SQL 2000 DTS' to SQL 2005 SSIS packages.
Our main issue at the minute seems to be that we are using ODBC drivers to pull many of the raw tables which we then manipulate into our own SQL Server tables.
I've been looking about and am I right in saying there is an issue with this in SQL 2005?
Also, I've been looking for some Tutorials to help me on this, would anyone be able to push me in the right direction of any good tutorials that would help me in fixing these issues?
Cheers
View 3 Replies
View Related
Jan 23, 2008
Hello,
I am having trouble with configuring a linked server in SQL 2005 Std SP2. (On Win2003 SP2 64bit)
i am linking to a PROGRESS db and here is an example of my connection string:
DRIVER={DATADIRECT 4.10 32-BIT Progress SQL92 v9.1E};DSN=MyDsn;DB=MyDb;UID=UserName;PWD=;HOST=192.168.0.1;PORT=2501
I use the SQL native client provider. here is my error message:
OLE DB provider "SQLNCLI" for linked server "lk_server" returned message "Login timeout expired".
OLE DB provider "SQLNCLI" for linked server "lk_server" returned message "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
Msg 2, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server [2].
OLE DB provider "SQLNCLI" for linked server "lk_server" returned message "Invalid connection string attribute".
The funny thing is if I use the same connection string with SQL 2005 Express SP2 (Win XP SP2 32bit ) I get my linked server to work and I am able to query the progress DB. Here's the twist. It will only work if I use OLE ODBC drivers for SQL. It even works if I don't specify a connection string and only give the DSN name.
But SQL Native Client is incapable of returning anything even on my SQL express install (Win XP SP2 32bit)
here is my SELECT statement:
SELECT * FROM OPENQUERY(LK_SERVER,'SELECT * FROM PUB.MYTABLE')
I would have no problems with using the OLE ODBC drivers for SQL in my SQL std. Trouble is, it's not available as a choice in the provider list on Win2003. I checked all the required services and made sure that I allow remote connections. But I always get the same error message.
I would appreciate if anybody could help me with this issue.
Thanks
View 7 Replies
View Related
Feb 15, 2006
I am not seeing an option to use the OraOLEDB.Oracle driver when defining connections in ssis. This driver shows up in management studio when trying to create linked servers so I don't know why it wouldn't show up here. All the client tools are installed fine and the linked server works. Any ideas?
View 4 Replies
View Related
May 21, 2007
Hi guys
I wanna display the compname [in competencies tbl], firstname & surname [in users tbl], position level [in positions tbl] and userlevel [in compuser tbl] but i get the ff error msg
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]The column prefix 'CompUser' does not match with a table name or alias name used in the query.
My code:
SELECT compname, firstname,surname ,level AS positionlevel
FROM positions, compuser, users A, comppos
INNER JOIN Competencies
ON comppos.Compid = competencies.Compid
RIGHT JOIN Users
ON CompUser.UserID = Users.UserID
WHERE Users.UserID = '999209'
OR Users.UserID = 'helpdesk1'
OR Users.UserID = '999339'
OR Users.UserID = 'helpdesk5'
ORDER BY CompName
Pls kindly help
Noks
View 1 Replies
View Related
Oct 30, 2007
How do you reinstalling ODBC drivers in vista business?
I have installed SQL 2005 Express & SQL Server management Studio Express, with SP2
However, the required driver "SQL Server" is not showing up in the list when trying to add a datasource in System DSN.
Can someone help? please.
Regards
Solway
View 6 Replies
View Related
Mar 2, 2006
Hi, we are writting a SQL Server Integration Services package to import data from a MySql database to a Sql Database.
We are using ODBC 3.51 Drivers to connect to the MySql Database in SSIS. The package runs perfectly in design mode. When we schedule the package to run, the package seems to hang about 1/3 of the times.
What can this be. We used to the package and ran it from a Sql Server 2005 to a Sql Server 2005 database. This setup works perfectly. When i'm doing MySql to Sql Server 2005, 1/3 of the times, it does not work.
Can anyone help me with this?
Giovan Gentile
Ayuda Media Systems
View 5 Replies
View Related