Click here to Skip to main content
14,577,302 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Help! In English is the use of a double negative... Pin
Member 798912229-Jun-20 20:07
MemberMember 798912229-Jun-20 20:07 
GeneralRe: Help! In English is the use of a double negative... Pin
Kris321129-Jun-20 22:50
professionalKris321129-Jun-20 22:50 
GeneralRe: Help! In English is the use of a double negative... Pin
Member 798912229-Jun-20 23:28
MemberMember 798912229-Jun-20 23:28 
GeneralRe: Help! In English is the use of a double negative... Pin
Jörgen Andersson30-Jun-20 0:28
professionalJörgen Andersson30-Jun-20 0:28 
GeneralRe: Help! In English is the use of a double negative... Pin
Kornfeld Eliyahu Peter30-Jun-20 0:31
mveKornfeld Eliyahu Peter30-Jun-20 0:31 
GeneralRe: Help! In English is the use of a double negative... Pin
W Balboos, GHB30-Jun-20 3:07
mveW Balboos, GHB30-Jun-20 3:07 
GeneralRe: Help! In English is the use of a double negative... Pin
obermd30-Jun-20 4:24
Memberobermd30-Jun-20 4:24 
RantJava, JDBC driver: Argh! Pin
raddevus29-Jun-20 11:29
mvaraddevus29-Jun-20 11:29 
Just thought I might rant a bit.
Simply trying to use MS example and driver to use Java to connect to sql server.
The only error I can ever get is: java.sql.SQLException: No suitable driver found for jdbc:sqlserver://

I don't believe it is finding the proper jar file.
I noticed that when I build via javac that even if I provide a bad path to the jar or whatever, the "compiler" happily rolls on. Oy! No way to even tell if javac is incorporating the jar.

I've downloaded the jar from : Download Microsoft JDBC Driver for SQL Server - SQL Server | Microsoft Docs[^]

I've tried older versions also. I'm running java 1.8 so I'm using the JDBC built for 1.8.

Just wasting time and I can't tell why it is giving me the same bad error no matter what I try. So annoying! Waste of time! Mad | :mad:
Java is so unsupported by anyone. Dead | X|
I'm sure I'm doing something wrong.

EDIT
I noticed that it gave me two errors:
at java.sql.DriverManager.getConnection(DriverManager.java:689)
at java.sql.DriverManager.getConnection(DriverManager.java:270)

I searched for source and found it at:
DriverManager Java Source Code[^] -- don't know exactly which version that is and it doesn't have line numbers.

THen I saw this....
if(url == null) {
            throw new SQLException("The url cannot be null", "08001");
        }


I set the connection string (url) to null and got that error.

Now down below I see the other STUPID and NON-DETAILED error message:

println("getConnection: no suitable driver found for "+ url);
        throw new SQLException("No suitable driver found for "+ url, "08001");


modified 29-Jun-20 17:45pm.

GeneralRe: Java, JDBC driver: Argh! Pin
Sander Rossel29-Jun-20 11:42
professionalSander Rossel29-Jun-20 11:42 
GeneralRe: Java, JDBC driver: Argh! Pin
raddevus29-Jun-20 11:56
mvaraddevus29-Jun-20 11:56 
GeneralRe: Java, JDBC driver: Argh! Pin
Mycroft Holmes29-Jun-20 12:47
professionalMycroft Holmes29-Jun-20 12:47 
GeneralRe: Java, JDBC driver: Argh! Pin
Member 798912229-Jun-20 12:49
MemberMember 798912229-Jun-20 12:49 
GeneralRe: Java, JDBC driver: Argh! Pin
raddevus29-Jun-20 18:05
mvaraddevus29-Jun-20 18:05 
GeneralRe: Java, JDBC driver: Argh! Pin
Jon McKee29-Jun-20 14:20
professionalJon McKee29-Jun-20 14:20 
GeneralRe: Java, JDBC driver: Argh! Pin
raddevus29-Jun-20 18:13
mvaraddevus29-Jun-20 18:13 
GeneralRe: Java, JDBC driver: Argh! Pin
Jon McKee29-Jun-20 20:35
professionalJon McKee29-Jun-20 20:35 
GeneralRe: Java, JDBC driver: Argh! Pin
raddevus30-Jun-20 2:03
mvaraddevus30-Jun-20 2:03 
GeneralRe: Java, JDBC driver: Argh! : tried it Pin
raddevus30-Jun-20 2:49
mvaraddevus30-Jun-20 2:49 
GeneralRe: Java, JDBC driver: Argh! Pin
raddevus30-Jun-20 3:05
mvaraddevus30-Jun-20 3:05 
NewsBad guys are not allowed to use iPhones Pin
ZurdoDev29-Jun-20 10:31
mveZurdoDev29-Jun-20 10:31 
GeneralRe: Bad guys are not allowed to use iPhones Pin
Super Lloyd29-Jun-20 13:44
MemberSuper Lloyd29-Jun-20 13:44 
GeneralRe: Bad guys are not allowed to use iPhones Pin
DRHuff29-Jun-20 15:49
MemberDRHuff29-Jun-20 15:49 
GeneralRe: Bad guys are not allowed to use iPhones Pin
Amarnath S29-Jun-20 18:48
professionalAmarnath S29-Jun-20 18:48 
GeneralRe: Bad guys are not allowed to use iPhones Pin
obermd30-Jun-20 4:25
Memberobermd30-Jun-20 4:25 
GeneralThe mystery of the disappearing socks Pin
CodeWraith29-Jun-20 7:13
MemberCodeWraith29-Jun-20 7:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.