This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

SQLJ vs JDBC

 
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?
 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic