Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQLJ vs JDBC

 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can anybody tell me whether SQLJ is more efficient or JDBC? and why?
 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am interested to know too.
 
Raj Chila
Ranch Hand
Posts: 128
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
SQLJ
[ April 27, 2004: Message edited by: RajaniKanth Bhargava ]
 
Prakash Anthony
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
http://www-106.ibm.com/developerworks/db2/library/techarticle/0302tsui/0302tsui.html
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me from where can i get the SQLJ Translator and Runtime Liberies? Please provide the link.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic