| Author |
What is the different between all these technology
|
Alvin chew
Ranch Hand
Joined: Jan 08, 2004
Posts: 834
|
|
hi, can someone please guide what is the purpose, advantages and disadvantages of having different technology in database like store procedure, trigger, preparestatement ? any other new technology i forgot mention ? thank you very much for guiding
|
 |
Hareesh Ram Chanchali
Ranch Hand
Joined: Jan 31, 2005
Posts: 110
|
|
plz be clear in your question.. Explain it for some extent
|
Hareesh Ram Chanchali
SCJP 5.0, IBM Certified Solution Designer
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26216
|
|
Alvin, Note that none of these are new technologies. Stored procedure - executes on database (you use a CallableStatement to call through JDBC) Trigger - executes in response to changes in table Prepared statement - executes SQL through Java/JDBC
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Alvin chew
Ranch Hand
Joined: Jan 08, 2004
Posts: 834
|
|
|
thanks for reply and sorry for confusing, but when we use it normally ?
|
 |
Srinivasa Raghavan
Ranch Hand
Joined: Sep 28, 2004
Posts: 1228
|
|
Stored Procedures are created in database level. These stored procedures can be called through a callable statement. When ever any query needs to be executed more than one time but with different parameter in the where clause then prepared statement is a better approach, because the prepared statement is precompiled statement. A statement object gets compiled for each and every sql statement executed across the database. Finally triggers are database objects called by the DB when ever a insert, delete or update on a table is performed. [ February 28, 2005: Message edited by: Srinivasa Raghavan ]
|
Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
|
 |
 |
|
|
subject: What is the different between all these technology
|
|
|