RE: Registering the JDBC Driver
- From: evanba@xxxxxxxxxxxxxxxxxxxx (Evan T. Basalik (MSFT))
- Date: Tue, 12 Sep 2006 18:09:42 GMT
If you look at http://msdn2.microsoft.com/en-us/library/aa342339.aspx, you will find a sample application that demonstrates how to set up your Java
environment, plus allows you to confirm it is set up properly.
Evan
--------------------
Thread-Topic: Registering the JDBC Driver
thread-index: AcbShKgJu7UfgSYHQmKxREGjkY230A==
X-WBNR-Posting-Host: 199.71.241.67
From: =?Utf-8?B?RGVudA==?= <Dent@xxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Registering the JDBC Driver
Date: Thu, 7 Sep 2006 06:51:02 -0700
Lines: 15
Message-ID: <CC99DBB1-E8F1-463D-87BF-4666E6E1452C@xxxxxxxxxxxxx>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
Newsgroups: microsoft.public.sqlserver.jdbcdriver
Path: TK2MSFTNGXA01.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.jdbcdriver:8068
NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
X-Tomcat-NG: microsoft.public.sqlserver.jdbcdriver
I can barely spell SQL. So I need help on this. How do I do this. Where do I
issue this statement. I am trying to install IBM Director and I can make an
ODBC connection to the database.However the Application is written in JAVA
and I need this driver to make the connection. It keeps failing. I think I
have not registered the driver. Nor do I know which application to use to do
this registration. It is not like registering a dll ?
To connect to a database by using the DriverManager class, you must first
register the driver as follows:
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
--
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
.
- Prev by Date: Trying to connect to SQL2005 with JDBC from Tomcat 5.5
- Next by Date: Re: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.
- Previous by thread: Trying to connect to SQL2005 with JDBC from Tomcat 5.5
- Next by thread: Re: Registering the JDBC Driver
- Index(es):
Relevant Pages
|