File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes jdbc driver Type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbc driver Type" Watch "jdbc driver Type" New topic
Author

jdbc driver Type

Himagiri Reddy
Greenhorn

Joined: Oct 04, 2005
Posts: 3
Hai All,
Is there any program to cross-check what type(JDBC Driver Type1,Type2,Type3,Type4) of jdbc driver we are using? I would like to know how to connect with these type drivers with simple examples(All not whole program code;only snippet of the program).

Expecting Reply.
[ October 07, 2005: Message edited by: HIMAGIRIREDDY ]
Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
Hi,

There are two issues that I have with this question.

One, you have been asked repeatedly now to change your display name to something real. You need to change your display name from HIMAGIRIREDDY
to something real which you can do http://www.coderanch.com/forums/user/edit I fear the wrath of Bear will be descending on you for this infraction if you don't fix this asap.

Two, does this question relate to the one you asked a few days ago? I gave you a reply there and you quoted it back but didn't say anything so I don't know what that means. I have this feeling that this question has spun off from some doubt from your first question.

If you would like to fix the first problem and address the second then I will be more than happy to answer your question.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Why does Bear get all the wrath?

If you give us more information we can give you a better answer.
The short answer is:
The JDBC code for different Driver types is exactly the same. Only the Driver class in the Class.forName(...) and the JDBC-URL change.

Dave
Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
Originally posted by David O'Meara:
Why does Bear get all the wrath?

Because largely he (Bear) seems to just hunt for name violaters and he already told him twice. But far be it from me to take wrath away from anyone. Wrath away.
Originally posted by David O'Meara:

If you give us more information we can give you a better answer.

The short answer is:
The JDBC code for different Driver types is exactly the same. Only the Driver class in the Class.forName(...) and the JDBC-URL change.

Back on point... this is why I suspect this question is related to the last one. I think the poster is having problems connecting to an ODBC datasource or is having some other issue with the URL's in relation to this.
[ October 07, 2005: Message edited by: Maximilian Stocker ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Just to follow up offically:

"HIMAGIRIREDDY",
this is your third and final warning to change your display name. Previous requests can be found here.

Your display name must be two words: your first name, a space, then your last name. Fictitious names are not allowed. This is your last warning before your account is deleted.

You can change your display name here.

thanks,
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc driver Type