File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes SQLJ  vs JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "SQLJ  vs JDBC" Watch "SQLJ  vs JDBC" New topic


Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Hi All,
Can anybody tell me whether SQLJ is more efficient or JDBC? and why?
Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
I am interested to know too.

SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Raj Chila
Ranch Hand

Joined: Mar 18, 2004
Posts: 128

JDBC generally depends on String input to make Database calls, this will not show us the Syntax errors untill the runtime.. and when we use SQLJ we will know the errors at compiletime itself and (though SQL statements will have to be static).
there is a good link on this in Javaworld.
[ April 27, 2004: Message edited by: RajaniKanth Bhargava ]
Prakash Anthony

Joined: Apr 03, 2004
Posts: 5
SQLJ does provide some advantages over JDBC in terms of performance and security.
Where JDBC provides for the dynamic SQL execution, SQLJ apps can be precompiled to determine the optimal access paths, to give better performance.
SQLJ is simple as you can embedd your SQL statements like you would do in other languages such as COBOL and C.
Check out the following for more:
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Can anybody tell me from where can i get the SQLJ Translator and Runtime Liberies? Please provide the link.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: SQLJ vs JDBC
It's not a secret anymore!