• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SQLJ vs JDBC

 
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Can anybody tell me whether SQLJ is more efficient or JDBC? and why?
 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am interested to know too.
 
Ranch Hand
Posts: 128
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anybody tell me from where can i get the SQLJ Translator and Runtime Liberies? Please provide the link.
 
Sheriff
Posts: 7023
reply
    Bookmark Topic Watch Topic
  • New Topic